Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Rename FILE to nnn-FILE

by uksza (Abbot)
on Dec 29, 2004 at 23:03 UTC ( #418124=note: print w/replies, xml ) Need Help??

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 ...


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';

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://418124]
[Corion]: Heh. Perl heredocs are nasty - Filter::Simple doesn't know whether the line continued after the heredoc or not. The heredoc payload starts on the next line.
[Corion]: So currently, Filter::Simple mangles your code/line numbers if you use heredocs ;)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-01-22 10:19 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (187 votes). Check out past polls.