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

Re^2: foreach-loop-local var in sub

by NetWallah (Abbot)
on Jan 22, 2013 at 02:39 UTC ( #1014535=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        my_print();          
       print " (Perl Style:\$i==$i)\n";
    }
    
  2. or download this
    1 (C-Style:$i==1)
    2 (C-Style:$i==2)
    3 (Perl Style:$i==x)
    3 (Perl Style:$i==y)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (None)
    As of 2016-07-30 07:26 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      What is your favorite alternate name for a (specific) keyboard key?


















      Results (265 votes). Check out past polls.