Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by arturo (Vicar)
on May 29, 2004 at 03:53 UTC ( #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? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2023-06-08 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?