No such thing as a small change | |
PerlMonks |
Re: hash keys from another fileby moritz (Cardinal) |
on Mar 23, 2013 at 12:33 UTC ( [id://1025031]=note: print w/replies, xml ) | Need Help?? |
This almost certainly does not do what you want. In the while(<DEV>) it reads a line from the file, in the chomp; line it removes the trailing newline, and then in the line @dev = <DEV> it ignores the read line, and reads all the rest of the lines into the array. Without any newline removal. What you probably meant to write was
Or even simpler:
In Section
Seekers of Perl Wisdom
|
|