|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Answer: Reading Variables from a File |
| ( #135157=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > input and output > Reading Variables from a File contributed by Chrisf
Say you have written the numbers to the file and have delimited them with | so the data in the file looks like this:
1111|2222|3333 You can then read them into your variables like so:
The length of the code can be reduced substantially, but this gives you an idea of what's going on.
|
|
||||||||||||||||||