#!/usr/bin/perl open(FILE,"</path/to/file"); undef $/; # this makes the following line pull in everything instead o +f just the first line $contents=<FILE>; close FILE;
In reply to RE: How do I read an entire file into a variable?
by Anonymous Monk
in thread How do I read an entire file into a variable?
by sgtbaker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |