Do you know where your variables are? | |
PerlMonks |
Re^2: Splitting a text fileby farang (Chaplain) |
on Mar 20, 2013 at 17:03 UTC ( [id://1024571]=note: print w/replies, xml ) | Need Help?? |
Thanks, daxim, it was instructive to me to figure out how the pieces fit together. One thing though, your Perl code as written will put only 999 lines into the first file. This can be fixed by replacing $. with ($.-1)
In Section
Seekers of Perl Wisdom
|
|