in reply to and a simple reg exp poser

try this:
@ip = $log =~/(192\.168\.1\.10.*?)\n/g;
(not tested)

Replies are listed 'Best First'.
Re^2: and a simple reg exp poser
by diotalevi (Canon) on Jan 30, 2003 at 15:02 UTC

    stew asserted that the entire line should be captured. Your expression ignores everything on the line prior to the match. You want to just store the value of $log if it's a match, not do some fancy footwork with capturing. Its just buggy this way.


    Seeking Green geeks in Minnesota

Re: Re: and a simple reg exp poser
by stew (Scribe) on Jan 30, 2003 at 14:58 UTC
    (tested)

    Thank you!