my @words = `cat /path/to/file`
Are you sure the OP uses some kind of unix? Windows has no cat command out of the box. And by the way: Why spawn a new process to read a file when perl can read the file without assistance? File::Slurp does a nice job.
Alexander
In reply to Re^2: How to read from a file instead from a hard coding list.
by afoken
in thread How to read from a file instead from a hard coding list.
by 300zxmuro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |