Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Increasing a field size for a recordby zwon (Abbot) |
on Oct 16, 2012 at 15:38 UTC ( [id://999357]=note: print w/replies, xml ) | Need Help?? |
That's a funny approach, but is not very efficient, every time you're assigning to $line[$i] it rewrites all the file starting from the record $i. Update: More efficient would be to use File::Slurp: The problem is that it doesn't preserve the width of the other fields
In Section
Seekers of Perl Wisdom
|
|