in reply to Unknown problem, throws "Useless use of privt var in void contxt"

Where else is $match accessed? I would understand that warning to mean that you've saved data to a variable that goes out of scope before you try accessing or returning it. Are you forgetting to return $match at the end of this sub? I ask because I don't see you doing so explicitly.

Replies are listed 'Best First'.
Re^2: Unknown problem, throws "Useless use of privt var in void contxt"
by S0ci1_Hak0n (Novice) on Jan 21, 2008 at 22:57 UTC
    The problem was that backwards => (meant to be >=). Thanks anyway!

    I still can't believe I got 3 responses in 10 min, though...

    Jonathan