mikesname has asked for the wisdom of the Perl Monks concerning the following question:
blah.1-100.jpg, rubarb1-56.psdetc etc. The method I'm using seems to work well, except for one thing - it can't distinguish between a padded sequence and an unpadded sequence, for example:
1.jpg, 2.jpg, 3.jpg .. 200.jpgand
0001.jpg, 0002.jpg, 0003.jpg .. 0200.jpgIs there any reasonably simple way I can get perl to evaluate 1 == 0001 as false?
Thanks, Mike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Distinguishing between padded and non-padded literal numbers...
by Roy Johnson (Monsignor) on Sep 29, 2005 at 20:35 UTC | |
|
Re: Distinguishing between padded and non-padded literal numbers...
by revdiablo (Prior) on Sep 30, 2005 at 00:18 UTC | |
|
Re: Distinguishing between padded and non-padded literal numbers...
by MrNiceGuy (Initiate) on Oct 02, 2005 at 00:55 UTC |