![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: How to copy an array to a hash?by CountZero (Bishop) |
on Jan 11, 2008 at 07:33 UTC ( #661824=note: print w/replies, xml ) | Need Help?? |
Good idea! But why use \r\n instead of \n? Also it looks like the OP's input file might have empty lines and that could throw the sequence out of sync unless you take special care (perhaps by using \n+ ?). CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In Section
Seekers of Perl Wisdom
|
|