in reply to Re^2: Real time log parser
in thread Real time log parser
There's no difference to the usual way passing arguments to subroutines or scripts works. In the above code, $_ (the current line read fron the file handle) is being passed to a subroutine hold() in case the regex matches. What the routine then does with it, depends on its implementation... So what does it look like? Could it be you're confusing subroutine arguments (@_) and command line arguments (@ARGV)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Real time log parser
by kazak (Beadle) on Jan 02, 2012 at 19:27 UTC | |
by Eliya (Vicar) on Jan 02, 2012 at 20:20 UTC | |
by kazak (Beadle) on Jan 02, 2012 at 21:35 UTC | |
by Eliya (Vicar) on Jan 02, 2012 at 22:51 UTC | |
by kazak (Beadle) on Jan 03, 2012 at 10:33 UTC | |
|