in reply to Pass a parameter to a callback function

I figured it out. I was sending the parameter using:
&{parser}($url);
The correct way should have the parameter in quotes:
&{parser}("$url");

Replies are listed 'Best First'.
Re^2: Pass a parameter to a callback function
by ikegami (Patriarch) on Oct 15, 2009 at 01:14 UTC
    The quotes creates a copy of the variable after forcing it into a string. You shouldn't ever have to do that. Something is very funky in your parser.