Hmmm. I'm sure I can work a ... in somehow:
open BIGFILE, $filename or die; while (<BIGFILE>) { if (/(.+)$/ ... /^\$$/ && next) { if (defined $1) { open SMALLFILE, ">$1" or die; next } print SMALLFILE; next; } warn "Untested code is bad!"; } close BIGFILE;
In reply to Re: Splitting long file
by TilRMan
in thread Splitting long file
by Micz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |