Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

static in Perl

Status
Not open for further replies.

naq2

Programmer
Aug 3, 2004
74
FR
I'm just wondering if the concept of a static variable (like in C: the value is private but keeps it value between calls) exist in Perl?
If yes... how to do this? Is it with "local"?

Thanks for you help.
 
Good question but why?

--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
euh... coz it would be helpful to me! ;)

I know I can always use a global variables... but I was just wondering if this functionnality was in PERL.

Thats... WHY! :)

so...?
 
have a look on google

perl scope

Much better answer than I can give at this time

--Paul



It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top