Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Adding text file data to hashes and arrayby haukex (Archbishop) |
on Feb 13, 2019 at 18:46 UTC ( [id://1229883]=note: print w/replies, xml ) | Need Help?? |
Two nits: Why use splice @lines, 0, 1; instead of shift, and why use split /\s+/ when split ' ' does the same thing but discards leading whitespace? splice @elements, 0, 1; discards the first element regardless of what it contains, even if the file format changes and there is no more whitespace at the front of the lines.
In Section
Seekers of Perl Wisdom
|
|