Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: changing package variables?

by tachyon (Chancellor)
on Mar 04, 2003 at 23:58 UTC ( [id://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;