Just a thought, but try to change to your directory first........

my $dir = '/home/me/images/';
my @jpegs = `ls *.jpg`;
chdir ($dir) || die "Cannot chdir to $dir: $!";;
foreach (@jpegs) {
        print"$_";      # dont forget that a newline is still at the end of
each element in the array...
        }
############################



-----Ursprüngliche Nachricht-----
Von: mel awaisi [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 12. März 2003 03:43
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: ls: *.jpg: No such file or directory 


Hi

My error is as the subject says, i have a script that i am 
trying in it to 
locate where a directory with images are.

the part in the script that the error i think is arising from is

my $dir = '/home/me/images/';
my @jpegs = `ls *.jpg`;
foreach (@jpegs) {
        print"$_";      # dont forget that a newline is still 
at the end of each 
element in the array...
}

------------------------
ls: *.jpg: No such file or directory
-----------------------

Regards,

Mel

_________________________________________________________________
Chat online in real time with MSN Messenger http://messenger.msn.co.uk


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to