open FILE, "myfile" or die "Couldn't open file: $!"; $string = join("", <FILE>); close FILE;
Originally posted as a Categorized Answer.
In reply to Re: How do I read an entire file into a string?
by Anonymous Monk
in thread How do I read an entire file into a string?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |