Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Want to do One line Perl Command

by Neutron Jack (Pilgrim)
on Jul 03, 2004 at 19:36 UTC ( [id://371611]=note: print w/replies, xml ) Need Help??


in reply to Want to do One line Perl Command

Here's a different approach:
perl -0ne 'unlink /.+\n(?:Errors$)+|(.+)/mg'

Replies are listed 'Best First'.
Re^2: Want to do One line Perl Command
by muba (Priest) on Jul 05, 2004 at 11:08 UTC
    Hmm... I just don't see why it's so important to you to have a perl -ne style one-liner. What's wrong with a script which can do the job easier and more readable than a one-liner?
    "2b"||!"2b";$$_="the question"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2025-04-28 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.