open FILE "myfile"; my $data = join "", <FILE>; close FILE;
...but of course, there's more than one way to do it.
In reply to Re: How do I read an entire file into a variable?
by nate
in thread How do I read an entire file into a variable?
by sgtbaker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |