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

Re: changing package variables?

by tachyon (Chancellor)
on Mar 04, 2003 at 23:58 UTC ( #240489=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use lib ('.');
    ...
    __DATA__
    var1 = DEFUALT I WANT TO CHANGE
    var1 = PRINT THIS
    
  2. or download this
    use strict;
    use lib ('.');
    ...
    sub get_var { return $var1 }
    
    1;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2023-12-09 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (38 votes). Check out past polls.

    Notices?