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

Re^5: A short whishlist of Perl5 improvements leaping to Perl7 (Thought Experiment No.2)

by LanX (Saint)
on Nov 28, 2020 at 12:48 UTC ( [id://11124319]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    { 
        $x = 1;
    ...
            $x = 2;
        }
    }
    
  2. or download this
    { 
        my $x = 1;
    ...
            my $x = 2;
        }
    }
    
  3. or download this
    { 
        $x = 1;
    ...
            my $x = 2;
        }
    }
    
  4. or download this
    { 
        my $x = 1;
    ...
            my $x = 2;
        }
    }
    
  5. or download this
    { 
        my $x = 1;
    ...
            $x = 2;
        }
    }
    
  6. or download this
    { 
        my $x = 1;
    ...
            $x = 2;
        }
    }
    
  7. or download this
    { 
        my $x = 1;
    ...
            my $x = 2;
        }
    }
    
  8. or download this
    { 
        my $x = 1;
    ...
            my $x = 2;
        }
    }
    
  9. or download this
    sub foo { 
        if (1) {
    ...
        }
        print $x;
    }
    
  10. or download this
    sub foo { 
        if (1) {
    ...
        }
        print $x;     # undeclared
    }
    
  11. or download this
    sub add { 
        $x = 0;
    ...
        }
        print $x;
    }
    
  12. or download this
    sub add { 
        my $x = 0;
    ...
        }
        print $x;         # prints 0
    }
    
  13. or download this
    use automine
    # our $var;
    ...
        $var = shift; # not 'my $var' if explicit 'our $var' exists 
        ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found