Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Help needed understanding global variables in Perl

by gellyfish (Monsignor)
on Mar 05, 2002 at 15:03 UTC ( #149388=note: print w/ replies, xml ) Need Help??


in reply to Re: Help needed understanding global variables in Perl
in thread Help needed understanding global variables in Perl

I'm thinking of things like $VERSION and @ISA.

These kind of things are fine, you are only declaring them with our for your own convenience within your module - when they are accessed by perl itself or by another module (in the case of $VERSION and ExtUtils::MakeMaker for instance,) they are accessed as if they were fully qualified. Infact h2xs does declare them as our by default :

our @ISA = qw(Exporter); # .. removed the comments our %EXPORT_TAGS = ( 'all' => [ qw( ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our @EXPORT = qw( ); our $VERSION = '0.01';

/J\


Comment on Re: Re: Help needed understanding global variables in Perl
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-12-20 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls