in reply to Re^4: How to write the perl script for the following linux command?
in thread How to write the perl script for the following linux command?
Usually, Perl also outputs the exact line number where the warning occurs. What line number does your code output?
I find it unlikely that opendir would succeed but then readdir should return undef.
Let me recommend to you, again, File::Find, which makes iterating over a directory tree somewhat easier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How to write the perl script for the following linux command?
by finddata (Sexton) on Mar 14, 2017 at 12:42 UTC | |
by Corion (Patriarch) on Mar 14, 2017 at 12:56 UTC | |
by finddata (Sexton) on Mar 14, 2017 at 13:16 UTC | |
by marto (Cardinal) on Mar 14, 2017 at 13:26 UTC |