Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: can any reply out with a better code than this??

by fenLisesi (Priest)
on Dec 06, 2007 at 08:06 UTC ( #655309=note: print w/ replies, xml ) Need Help??


in reply to Re^4: can any reply out with a better code than this??
in thread can any reply out with a better code than this??

Do you mean something like this?

use strict; my $string = 'ri\d+'; while (my $line = <>) { if ($line =~ m{ ( ( \Q$string\E ){3} ) }xms) { print $line; printf qq{\tMatched "$2" x 3: "$1"\n}; } }

Why don't you post a little more of your code "calling some files"?


Comment on Re^5: can any reply out with a better code than this??
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-12-19 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (84 votes), past polls