Perl-Sensitive Sunglasses | |
PerlMonks |
Re: How to create array from fileby Corion (Patriarch) |
on Jan 20, 2017 at 12:14 UTC ( [id://1179991]=note: print w/replies, xml ) | Need Help?? |
Your intended output format makes little sense at first glance. Maybe you really want to use Text::CSV_XS to read in comma-separated files into arrays? If you really, really want to read a file into an array of arrayrefs all of which contain only one element, see open, and readline. You can help us give you more appropriate advice by showing us what code you have already written and what input data you give it and how your code fails to do what it should.
In Section
Seekers of Perl Wisdom
|
|