G
g4173c
Hi:
I'm trying to get the match string from fgrep with the following code:
use File::Grep qw (fgrep);
foreach $log (@logfile) {
@match = fgrep { /HOSTNAME/ } "$log";
...
do_lots_more
}
however this is only returning a HASH(xxx). I assume it doesn't like
the
"$log" which is the path to the file. How can I correct this?
Thanks!
Tom
I'm trying to get the match string from fgrep with the following code:
use File::Grep qw (fgrep);
foreach $log (@logfile) {
@match = fgrep { /HOSTNAME/ } "$log";
...
do_lots_more
}
however this is only returning a HASH(xxx). I assume it doesn't like
the
"$log" which is the path to the file. How can I correct this?
Thanks!
Tom