Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Inheritance and package variables

by dsb (Chaplain)
on Jul 26, 2004 at 11:46 UTC ( #377393=note: print w/replies, xml ) Need Help??


in reply to Inheritance and package variables

Using the fully qualified name of the package variable should accomplish what you want to do, if I am understanding you correctly.

Fully qualify a variable by adding the package it belongs to to any instances of its use.

$package::varname $DBI::errstr $main::var
Note that any variables declared with my don't belong to any package and so could not be accessed like this.



dsb
This is my cool %SIG

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://377393]
help
Chatterbox?
[marto]: I can relate to that somewhat, I'm a light sleeper and frequently get woken up by kids doing much the same as your cats
[jedikaiti]: Yea, the kids (& the cats) are good at that
talexb is having a hard time with Windows losing DNS info for Perlmonks when voting. CB works fine. Ugh.
[jedikaiti]: how odd

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2017-07-25 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (374 votes). Check out past polls.