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!
In reply to Builtin function and reference by pid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |