in reply to Re: Re: A monk in training with a problem
in thread A monk in training with a problem
Better yet, separate your path out into its own variable for maintenance purposes:
my $imagepath= "C:/example/images/"; my @screenres=sort glob("$imagepath* screen res.tif");
for the first step of your request :
A) The name is changed to something like 000014b6.tif, 00001sr.jpg, and 00001tn.jpg. (and possibly 000018b10.tif)
I would recommend using an underscore between the file name and the picture type, so 00001_4b6.tif and 00001_8b10.tif, and so on. This will assist you in determining where picture names stop, and picture types begin.
Also, check out the rename command, but since you are so new to perl, please back up all your pictures before commencing with renames :
Good luck!
Update a little more experiment with glob seems to reveal its output is always sorted. Can anyone confirm this?
|
|---|