Hi wfsp!
Can you please give an example how to get rid of the $i here? I always wanted that but never found a way to get filenames incremented without a temporary variable.
perl -e '$fname= "testname_1";print "$fname\n",++$fname,"\n"'In reply to Re^2: unique filename
by Skeeve
in thread unique filename
by lax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |