Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: A new question from the front line

by blakem (Monsignor)
on Oct 18, 2002 at 08:15 UTC ( [id://206243]=note: print w/replies, xml ) Need Help??


in reply to A new question from the front line

If you know 'energy' wont occur on successive lines, how about:
perl -pe'$_=/\benergy\b/&&<>'

-Blake

Replies are listed 'Best First'.
Re^2: A new question from the front line
by Aristotle (Chancellor) on Oct 18, 2002 at 13:57 UTC
    His own code doesn't fulfill the successive lines criterion either. Golf time: perl -pe'$_=/energy/?<>:""' Hmm, yours beats me if you take out the \b though.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-25 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found