Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^5: Is use strict always appropriate?

by Jenda (Abbot)
on Jun 20, 2012 at 13:25 UTC ( [id://977338]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub outer {
     ...
    ...
     }
     ...
    }
    
  2. or download this
    {
      my $hidden_data;
    ...
       ...
      }
    }
    
  3. or download this
    sub outer {
      my $lexical = ...;
    ...
      #or even
      return $inner;
    }
    
  4. or download this
    my $hash{key} = ...; # is illegal
    local $hash{$key} = ...; # is legal
    ...
    my $x = 1;
    {
      local $x = 2; # is illegal. Can't localize a lexical variable
    
  5. or download this
    our $variable = 15;
    
    ...
    
    one();
    two();
    
  6. or download this
    our $variable = 15;
    
    ...
    
    one();
    two();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-03-28 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found