BEGIN { use vars qw($devel); $devel = 0; # production } BEGIN { my @args = $devel ? qw(fatalsToBrowser set_message) : (); require CGI::Carp; CGI::Carp->import(@args); }
The equivalent of use Module LIST is BEGIN { require Module; Module->import(LIST) }.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^3: Controlling "use" statements
by shmem
in thread Controlling "use" statements
by nodice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |