calypso has asked for the wisdom of the Perl Monks concerning the following question:
my $input = $q->param('input'); my $Num =~ m/^\d{6,6}\.jpg$/i; chdir('/path/to/images') or die $!; @files = File::Find::Rule->file() ->name(qr{$Num}) ->in($imageDir); print $q->header(); foreach my $image (@files){ unless ($input){ next; } if($image =~ /$input/){ print $image; } else{ print "$input does not exist!\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if statement doesnt work
by RazorbladeBidet (Friar) on Feb 11, 2005 at 16:20 UTC | |
by Anonymous Monk on Feb 14, 2005 at 19:27 UTC | |
|
Re: if statement doesnt work
by gellyfish (Monsignor) on Feb 11, 2005 at 16:17 UTC |