in reply to Why is file being slurped in instead of line by line?
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Why is file being slurped in instead of line by line?
by zshzn (Hermit) on Aug 26, 2006 at 21:46 UTC | |
by GrandFather (Saint) on Aug 27, 2006 at 02:58 UTC | |
by zshzn (Hermit) on Aug 28, 2006 at 04:20 UTC |
In Section
Seekers of Perl Wisdom