my $data; { local $/; #sets input list separator to undef #so we can 'slurp' the file in $data = <TEXTFILE>; } close TEXTFILE;
Why didn't I think of that :)
These are the sort of things I love about such forums as Perl Monks.
--
Brother Marvell
In reply to Re: Re: Auto linking to words in a text file
by marvell
in thread Auto linking to words in a text file
by belize
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |