Perl_User has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to process files that are stored in /usr/home/*/logs/. when I try to open the logs directory with this code, it does not recognize the "*"
This is not working. Can anyone help?! Thanks in advancemy $log_dir = "/usr/home/*/logs"; opendir (LOG, $log_dir) or die "Error: Unable to open $log_dir. $!\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Search through directories
by fglock (Vicar) on Jul 31, 2003 at 21:11 UTC | |
by Perl_User (Acolyte) on Jul 31, 2003 at 21:16 UTC | |
Re: Search through directories
by sauoq (Abbot) on Jul 31, 2003 at 21:16 UTC | |
Re: Search through directories
by Cine (Friar) on Jul 31, 2003 at 21:04 UTC | |
Re: Search through directories
by Mr. Muskrat (Canon) on Jul 31, 2003 at 21:04 UTC | |
by Perl_User (Acolyte) on Jul 31, 2003 at 21:06 UTC |
Back to
Seekers of Perl Wisdom