in reply to RE: How do I read an entire file into a variable?
in thread How do I read an entire file into a variable?
my $data; { local($/) = undef; open (FILE, "<yourfile"); $data = <FILE>; close FILE; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: How do I read an entire file into a variable?
by vroom (His Eminence) on Dec 29, 1999 at 09:25 UTC |