Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Grep result in separate lines

by JavaFan (Canon)
on May 09, 2011 at 16:06 UTC ( [id://903787]=note: print w/replies, xml ) Need Help??


in reply to Grep result in separate lines

print "$_\n" for grep ...;
Or
use 5.010; say for grep ...;
or
{ local $, = local $\ = "\n"; print grep ...; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-23 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found