Re: image sorting....

2003-03-12 Thread Scott R. Godin
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]

Re: image sorting....

2003-03-11 Thread R. Joseph Newton
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

Re: image sorting....

2003-03-11 Thread Rob Dixon
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

Re: image sorting....

2003-03-11 Thread Rob Dixon
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 wor

image sorting....

2003-03-11 Thread Shawn Wilson
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 an