Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Best way to get all of the matches?

by GrandFather (Saint)
on Sep 30, 2006 at 18:26 UTC ( #575690=note: print w/replies, xml ) Need Help??


in reply to Re: Best way to get all of the matches?
in thread Best way to get all of the matches?

print provides list context so the array is not required:

... print $file =~ /($regexp)/g;

Prints:

match alphabets not numbers

DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2023-03-28 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (68 votes). Check out past polls.

    Notices?