D
davidzxz
Hi
I have trouble with the grep command.
My script has these lines:
opendir(DIR, "photodir") || do {&open_failed;};
@photofiles = readdir(DIR);
closedir(DIR);
@photofiles = grep ($_ !~ /^\.\.?$/, @photofiles);
@photofiles = grep ($_ ~ /^photo\d+\.jpg$/, @photofiles);
The last line causes an internal server error, but why?
The line before that works fine though...
Appreciate your time!
/David - Sweden
I have trouble with the grep command.
My script has these lines:
opendir(DIR, "photodir") || do {&open_failed;};
@photofiles = readdir(DIR);
closedir(DIR);
@photofiles = grep ($_ !~ /^\.\.?$/, @photofiles);
@photofiles = grep ($_ ~ /^photo\d+\.jpg$/, @photofiles);
The last line causes an internal server error, but why?
The line before that works fine though...
Appreciate your time!
/David - Sweden