in reply to Re^3: Removing AUTOLOAD from CGI.pm
in thread Removing AUTOLOAD from CGI.pm
Speed can't be that relevant, CGI doesn't do any syntax validation, so the same generic function could be installed at import time for all html-tags, maybe with a closed over $tag_name if necessary.
What am I missing?
¹) didn't know it's possible to predeclare an AUTOLOADed sub ... (scratch)
interesting...
DB<181> package Test; sub AUTOLOAD { $AUTOLOAD,\@_ } DB<182> bar(1,2,3) Undefined subroutine &main::bar called at (eval 196)[multi_perl5db.pl: +644] line 2. DB<183> Test::bar(1,2,3) => ("Test::bar", [1, 2, 3]) DB<184> *bar=\&Test::bar DB<185> bar(1,2,3) => ("Test::bar", [1, 2, 3])
but
DB<186> *foo=*Test::foo DB<187> foo(1,2,3) Undefined subroutine &Test::foo called at (eval 206)[multi_perl5db.pl: +644] line 2.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Removing AUTOLOAD from CGI.pm
by leej (Monk) on Feb 24, 2015 at 12:36 UTC | |
by LanX (Saint) on Feb 24, 2015 at 13:01 UTC | |
by LanX (Saint) on Feb 24, 2015 at 14:19 UTC | |
by LanX (Saint) on Feb 24, 2015 at 16:42 UTC | |
by leej (Monk) on Feb 25, 2015 at 07:19 UTC | |
by LanX (Saint) on Feb 25, 2015 at 14:31 UTC | |
by leej (Monk) on Feb 26, 2015 at 07:05 UTC | |
|