Beefy Boxes and Bandwidth Generously Provided by pair Networks
Joe Perl-Sensitive Sunglasses  Re^2: Displaying RTF string to
browser  by ikkon (Monk) on Aug 21, 2007 at 17:05 UTC
( #634133=note: print w/ replies, xml ) Need Help??  in reply to
Re: Displaying RTF string to browser in thread Displaying RTF
string to browser  I tried  $fh->close(); print STDOUT $RTF_obj;
and once the file opens in word I get a error document name or
path is not valid  Comment on Re^2: Displaying RTF string to
browser Download Code Re^3: Displaying RTF string to browser by
bart (Canon) on Aug 21, 2007 at 17:08 UTC     That's a start.
But you're printing the file name, not the file contents.
Try, hmm... How to make this easy? OK, let's stick to general
cross-platform solution: RTF is text, so we'll just print the
text of the file to STDOUT line by line.      open IN, $RTF_obj
or die "Oops?"; while(<IN>) { print; }       ok, tried that, and
a few variations, I don't get a error so thats a plus, but I get
a blank RTF not sure w