in reply to Symbolic reference problem
for (</home/www/*/logs/weekly>);
You are trying to read from a file name. You cannot do this in Perl. You have to read from a filehandle. To create a filehandle you need tp open the file:
open( LOG, "</home/www/logs/weekly>") or die "cannot open the log: $!"; while( <LOG>) { ...
Of course this will not work in your case as you are trying to read from several files using /home/www/*/logs/weekly. So the best way if for you to call the script using process /home/www/*/logs/weekly and to just read fron STDIN:
while( <>) # reads from STDIN { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Symbolic reference problem
by Hofmator (Curate) on Aug 20, 2001 at 14:57 UTC | |
by mirod (Canon) on Aug 20, 2001 at 15:17 UTC |