|
|
| XP is just a number | |
| PerlMonks |
Re: Replacing a string with a memory variableby VSarkiss (Monsignor) |
| on Jun 28, 2006 at 14:08 UTC ( #558021=note: print w/ replies, xml ) | Need Help?? |
|
Another WTDI would be to use sprintf, if only to make the code more readable: I guessed at the %02d in the format string based on your sample. BTW, the default target for the substitution is $_ so you could actually shorten the assignment to just
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||