Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by NetWallah (Canon)
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?
[Discipulus]: holli orange is gold in the morning, silver in afternoon and lead in the nigth..
[Discipulus]: banana too better not in the night
[holli]: it actually feels more like a lead-acid battery ^^
[Discipulus]: erix are you now travelling in space? iirc you were in low countries
choroba had 4 beers (or was it 5?) yesterday, plus a pickled cheese
[choroba]: megalag :-(
[erix]: ok, I looked it up, should have been: "Haribo macht Kinder froh und Erwachsene ebenso"
[Discipulus]: also mixing pizza (fermented/levited ) with juices is not so good
[erix]: D.: yeah, I am in the low countries. To be precise, I am 0.5m above sea level

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-11-22 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (316 votes). Check out past polls.

    Notices?