The stupid question is the question not asked | |
PerlMonks |
Re: Why is file being slurped in instead of line by line?by ahmad (Hermit) |
on Aug 26, 2006 at 16:35 UTC ( [id://569814]=note: print w/replies, xml ) | Need Help?? |
Hello , To make your code works fine , 1. remove "undef $/;" line ... which makes the whloe data as one line ( removes line sperator ) 2. remove "my @data;" from the top ... and declare it inside the loop ... which means ... it re-assigned a new data for each loop like my @data = split (/\t/, $line); HTH
In Section
Seekers of Perl Wisdom
|
|