in reply to Re: Pattern matching against a variable
in thread Pattern matching against a variable
Apologies for leaving the comments in there, but you can see what I've done and what you've suggested. They both falsely match against *everything* though, and print the whole log file.. Is there something I'm missing?open (LOGFILE, "/var/log/tac_acc.log"); while (<LOGFILE>) { print if /$username/; #if (/$username/) { #print "<br>",$_; # } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Pattern matching against a variable
by broquaint (Abbot) on Nov 04, 2003 at 11:25 UTC | |
by bonoboy (Sexton) on Nov 04, 2003 at 11:35 UTC |