http://www.perlmonks.org?node_id=418124


in reply to Re: Rename FILE to nnn-FILE
in thread Rename FILE to nnn-FILE

Many thanks for reply.
Of cource yours code works very good, but - it's my fault, I didn't wrote it - makes 1-file, 2-file, 3-file... etc and I was thinking about 001-file, 002-file, 003-file ...

regards,
Ukasza

Replies are listed 'Best First'.
Re^3: Rename FILE to nnn-FILE
by gaal (Parson) on Dec 30, 2004 at 06:45 UTC
    Ooops, somehow I omitted this from the version I posted. Just make this change:

    my $i; # change to my $i = '000';