in reply to Re^2: Perl stricter than my OS regarding file/dir names
in thread Perl stricter than my OS regarding file/dir names
You aren't telling us if the directory exists or not. Perl only gives you a helpfull warning, just in case you are trying to stat a file/directory with a newline in it - which would be a common programming error.
If you want to avoid the warning, just use
{ no warnings 'newline'; next if -d "$dir/$current_filename"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl stricter than my OS regarding file/dir names
by revdiablo (Prior) on Feb 15, 2006 at 21:13 UTC | |
|
Re^4: Perl stricter than my OS regarding file/dir names
by jffry (Hermit) on Feb 15, 2006 at 21:20 UTC |