Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Foreach loop

by PetreAdi (Novice)
on Sep 27, 2013 at 09:55 UTC ( #1055951=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $substr = " 1 ";
    foreach $key ( @newarray ){ 
    if (index($key, $substr) != -1) {print "\nExist";}
                               }
    
  2. or download this
    @newarray[n]="5    10    14    16    17    20    25    26    38  1  42
    +    47    54";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1055951]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-04-21 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls