Owen [O], on Tuesday, June 21, 2005 at 14:56 (+1000) typed the following: O> my $text = '/data/PerlScripts/test.txt';
this is your text you'd like to convert, or it is textfile, where you have content you'd like to convert ? I think the 2nd option is right, so you need to: my $file = '/data/PerlScripts/test.txt'; my $content = do { local $/; open(my($fh), "<", $file) or die "$file $!\n"; <$fh>}; ... -- How do you protect mail on web? I use http://www.2pu.net [Calvin: I achieve a lower consciousness.] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>