in reply to Re: replace with hash value?!
in thread replace with hash value?!

The reg are not looking for the same thing. the first is looking for an IP address. the ip is the key for the hash, so I save it in $PRTABL=$1. then use it to replace the "time" in the next reg with the value in $clocks{$PRTABL}. except $clocks{$PRTABL} never has a value in s///, however I can print the value on the next line?

Replies are listed 'Best First'.
Re^3: replace with hash value?!
by BrowserUk (Patriarch) on Jan 19, 2005 at 14:01 UTC

    The I would have to guess that your second regex is not matching.

    However, if you want to receive some help--rather than my half arsed guessing--you should try giving us some real information.

    Ie. Some real, runnable code--pasted from your own test program--that demonstrates the failure, including the sample data that causes it to fail.


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.