in reply to Re^5: Removing AUTOLOAD from CGI.pm
in thread Removing AUTOLOAD from CGI.pm
I wasn't able to reproduce this without explicitly importing "wibble"
DB<100> use CGI qw(:all wibble) DB<101> wibble => "<wibble />"
but
DB<100> use CGI ':all' DB<101> $x=CGI->new() DB<102> $x->wibble() Undefined subroutine CGI::wibble at (eval 24)[multi_perl5db.pl:644] line 2
So autoloading makes not much sense in this case.
It doesn't make the code more flexible it only delays the installation, which could already happen in the importer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Removing AUTOLOAD from CGI.pm (flexibility?)
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 | |
by LanX (Saint) on Feb 26, 2015 at 14:01 UTC | |
by leej (Monk) on Feb 26, 2015 at 15:21 UTC |