my $data; { local($/) = undef; open (FILE, "<yourfile"); $data = <FILE>; close FILE; }
In reply to RE: RE: How do I read an entire file into a variable?
by Kasei
in thread How do I read an entire file into a variable?
by sgtbaker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |