[PLUG] Simple Perl question

Rob Hudson rob at euglug.net
Tue May 14 18:55:03 UTC 2002


$var = `cat $file`;

see 'man perlfaq5' for more options.

-Rob

> On 20020514.1148, Ed Sawicki said ...
>
> What's the simplest way of reading the entire contents of a
> text file, including the new line characters, into a string
> variable?
> 
> Ed






More information about the PLUG mailing list