pid has asked for the wisdom of the Perl Monks concerning the following question:
Hi fellow monks!
Say for the sake of convenience I want to write a script that "symbolic-referencely" wraps Perl's built-in functions like this: &{$ARGV[0]};
Then I can call the script like this:
$ ./wrapper chr 128
But it keeps getting me errors like this:
Undefined subroutine &main::chr called at ./wrapper line n.
I know there's such a node: "How do I get a reference to a builtin function?". But please...is there some black magic available that can get me there? I'll appreciate your kindness of sharing your deepest knowledge of Perl.
Ta!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Builtin function and reference
by NetWallah (Canon) on Sep 01, 2011 at 05:03 UTC | |
Re: Builtin function and reference
by kcott (Archbishop) on Sep 01, 2011 at 05:02 UTC | |
Re: Builtin function and reference
by ikegami (Patriarch) on Sep 01, 2011 at 05:44 UTC | |
Re: Builtin function and reference
by pid (Monk) on Sep 01, 2011 at 05:44 UTC |