in reply to list from file
Replace \$list with a file name - it's as simple as that. See the documentation for open.
The \$list syntax allows a string to be used as a file and is an excellent way of providing a "file" in a small stand alone sample script.
Generally if you don't understand everything that is going on in a script you should read the documentation (in this case "perldoc -f open" would help), or ask someone. Simply copying code you don't understand is "cargo culting" and is an excellent way of getting into bad habits and wasting a lot of time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: list from file
by persianswallow (Novice) on Jul 29, 2011 at 22:12 UTC | |
|
Re^2: list from file
by persianswallow (Novice) on Jul 29, 2011 at 23:33 UTC |