Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Trouble with foreach loop.... I think

by arturo (Vicar)
on May 29, 2004 at 03:53 UTC ( [id://357416]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Arrays and slices are interpolated into double-quoted
    strings by joining the elements with the delimiter 
    specified in the $" variable($LIST_SEPARATOR if 
    "use English;" is specified), space by default.
    
  2. or download this
    my @results = grep( /@matches/, @netstat );
    
  3. or download this
    my @results = grep(/invalid headers packets dropped/, @netstat);
  4. or download this
    foreach my $match (@matches) {
        my @results = grep /$match/, @results;
        print @results;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-16 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found