convenientstore has asked for the wisdom of the Perl Monks concerning the following question:
($num) = $num =~ m#20(\d)#; ($num) = sprintf("%02d",$num);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: anyway to combine these two steps?
by ikegami (Patriarch) on Jan 19, 2010 at 07:02 UTC | |
|
Re: anyway to combine these two steps?
by moritz (Cardinal) on Jan 19, 2010 at 11:24 UTC | |
|
Re: anyway to combine these two steps?
by Anonymous Monk on Jan 19, 2010 at 06:59 UTC | |
by Anonymous Monk on Jan 19, 2010 at 07:07 UTC | |
|
Re: anyway to combine these two steps?
by ambrus (Abbot) on Jan 19, 2010 at 11:17 UTC | |
|
Re: anyway to combine these two steps?
by Anonymous Monk on Jan 19, 2010 at 06:44 UTC | |
by dsheroh (Monsignor) on Jan 19, 2010 at 08:43 UTC | |
by markuhs (Scribe) on Jan 19, 2010 at 09:11 UTC |