I have raw data like this:
Washington
New York
Louisiana
Georgia
Texas
Iowa
etc.
and I want to turn it into an array:
qw (Washington, New York ....);
I can do it manually but it is a fuzz to do it every time.
Is it perhaps possible with while (< DATA >)? How to input raw data into a perl script?
In reply to from txt file to array by WisDomSeeKer34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |