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}; }
In reply to Pass a parameter to a callback function by BruceDB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |