BruceDB has asked for the wisdom of the Perl Monks concerning the following question:
However, I need to be able to pass parameters (scalar, array, hash, whatever). What is the correct syntax for passing a parameter (lets say a scalar $url)? Thanks,sub run_parser { my $parser = shift; &{$parser}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pass a parameter to a callback function
by ikegami (Patriarch) on Oct 15, 2009 at 01:11 UTC | |
|
Re: Pass a parameter to a callback function
by BruceDB (Novice) on Oct 15, 2009 at 01:04 UTC | |
by ikegami (Patriarch) on Oct 15, 2009 at 01:14 UTC |