lisaw has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to look through a directory to see if any image files contain the id number and simply remove all images that contain the id number?if ($photo1 ne "") { {system("rm $photodir/$category_id_number/$photo1");} my @resize1 = split(/\./, $photo1); my $photo1t = $resize1[0] . "-T." . $resize1[1]; {system("rm $photodir/$category_id_number/$photo1t");} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing Multiple Image Files
by jettero (Monsignor) on Jan 05, 2007 at 02:51 UTC | |
by ikegami (Patriarch) on Jan 05, 2007 at 05:28 UTC | |
|
Re: Removing Multiple Image Files
by almut (Canon) on Jan 05, 2007 at 02:48 UTC | |
|
Re: Removing Multiple Image Files
by sgifford (Prior) on Jan 05, 2007 at 05:04 UTC |