You mean =~, not =. That fixes the error mentioning $_ (s/// works on $_ by default).
Also, the Perlish way to loop over an interval like that is for my $i (0..3) {.
In reply to Re^7: Renaming an image file
by Anonymous Monk
in thread Renaming an image file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |