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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use vars qw

Status
Not open for further replies.

DavidHappyFeet

Programmer
Apr 2, 2007
3
CA
Hi Everyone,

I'm totally new to Perl. Could anyone tell me what:
Code:
use vars qw(@ISA $VERSION $MAINTENANCE);
means?

Thanks in advance,

-David
 
it declares the list of variables as global variables. "vars" is deprecated, "our" should be used instead, but I'm pretty sure "vars" will still work properly.


------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Yes, our is definitely the preferred method for declaring globals now. But use vars will always be supported as most module writers depend on it to be backward compatible for perl before 5.8.0.

- Miller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top