Shawn Wilson wrote:
1. why is my if statement not working to detect when i have a directory:
last if ($file eq $dir);
next if (-d $file);
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
i have a couple of questions on File::Find and Image::Info ;
1. why is my if statement not working to detect when i have a directory:
last if ($file eq $dir);
2. why do i get this message when i finally do get to an image:
Not a CODE reference at ./bigimg2.pl line 39.
(this is displayed once
Shawn Wilson wrote:
i have a couple of questions on File::Find and Image::Info ;
1. why is my if statement not working to detect when i have a
directory: last if ($file eq $dir);
Why do you think it isn't working? Unless your version of Perl
bahaves differently I would expect it to work
Rob Dixon wrote:
2. why do i get this message when i finally do get to an image:
Not a CODE reference at ./bigimg2.pl line 39.
(this is displayed once an image is found)
and line 39 states:
$type=$info-(file_ext);# three letter image
type
You are using the
Shawn Wilson wrote:
i have a couple of questions on File::Find and Image::Info ;
1. why is my if statement not working to detect when i have a directory:
last if ($file eq $dir);
This will exit the loop if the value of $file is exactly the same as the value of
$dir. You are probably