Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Why is perl spending so much time in the BEGIN section?

by chromatic (Archbishop)
on Jun 08, 2002 at 21:50 UTC ( [id://172844]=note: print w/replies, xml ) Need Help??


in reply to Why is perl spending so much time in the BEGIN section?

Exporter's a bit heavy compared to small programs. Why does that show up in BEGIN blocks in your code? Well...
$ bleadperl -MO=Deparse package SE::Util::Func; use Exporter; @ISA = ('Exporter'); @EXPORT= qw( SE_cat SE_dump SE_getName SE_getValue SE_isTag ); require 5.6.1; use strict;
produces:
package SE::Util::Func; @ISA = 'Exporter'; @EXPORT = ('SE_cat', 'SE_dump', 'SE_getName', 'SE_getValue', 'SE_isTag +'); require 5.006001; sub SE::Util::Func::BEGIN { package SE::Util::Func; require Exporter; do { 'Exporter'->import }; } sub SE::Util::Func::BEGIN { package SE::Util::Func; require strict; do { 'strict'->import }; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://172844]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found