Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: my $var; vs. use constant VAR = '';

by tadman (Prior)
on Apr 27, 2001 at 01:07 UTC ( #75909=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my ($filename) = "/path/to/file";
        my ($filemode) = "immolate";
        my ($opmode)   = "seek";
        my ($filetype) = "image/gif";
    
  2. or download this
        my (%config) = (
               filename => "/path/to/file",
               filemode => "immolate",
               opmode   => "seek",
               filetype => "image/gif",
        ); 
    
  3. or download this
         my ($thing) = $config{'thing_to_mash'};
         for (my $x = 0; $x < 100_000_000; $x++)
         {
               DoCrazyStuff($thing, $x, Foo($x));
         }
    
  4. or download this
        sub Config { return $config{$_[0]}; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-09-23 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls