Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Better way of doing!

by Laurent_R (Canon)
on Aug 12, 2013 at 16:46 UTC ( [id://1049147]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict; 
    use warnings;
    
    ...
         print "Number of patterns found for $patterns[$i] is $count[$i] \
    +n"; 
    }
    close $FILEHANDLE;
    
  2. or download this
             $count[$i]++ if /$patterns[$i]/;
    
  3. or download this
             $count[$i]++ and last if $_ ~~ $patterns[$i];
    
  4. or download this
             $count[$i]++ and last if /$patterns[$i]/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found