@list=sort glob ("*.txt"); ($next)= $list[-1]=~/(\d+)/; ++$next; print "opening $next.txt"; open (FH, ">>$next.txt") or die "no open for you! $!"; #hi, vs! print FH "bueno"; close FH;
In reply to (boo) Re: sequencial file naming
by boo_radley
in thread sequencial file naming
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |