Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Answer: How do I create static class variables (class data)?

by chromatic (Archbishop)
on Apr 21, 2000 at 04:17 UTC ( #8304=categorized answer: print w/replies, xml ) Need Help??

Q&A > object-oriented programming > How do I create static class variables (class data)? - Answer contributed by chromatic

The new keyword our (introduced in Perl 5.6) provides a package scope for variables. It is demonstrated in perltootc.

  • Comment on Answer: How do I create static class variables (class data)?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[robby_dobby]: Jerry spaniel seinfeld? /o\
[shmem]: not Jerry, mine is a she-dog
[robby_dobby]: I'm not an animal person, but these 2 gun dogs make me think what they'd be like as therapy dogs
LanX will call his next dog Mutator
[shmem]: Despina
[LanX]: food's closing. ...
[LanX]: hot dog!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-12-15 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (442 votes). Check out past polls.

    Notices?