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

Re: perl programs from the command line in the manner of sed?

by blazar (Canon)
on Apr 21, 2006 at 12:02 UTC ( [id://544938]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to perl programs from the command line in the manner of sed?

You should check perldoc perlrun, in particular you're likely to be interested in -n, -p, or the "chomping versions" -ln, -lp, possibly with inline modifying, -i and/or with changing the input record separator...

As for PM's Super Search, try with "oneliners" et similia, although the results won't be focused on conversions from sed, they're likely to solve tasks similar to the ones you're interested in.

Replies are listed 'Best First'.
Re^2: perl programs from the command line in the manner of sed?
by OfficeLinebacker (Chaplain) on Apr 21, 2006 at 14:21 UTC
    Does your name rhyme with "Quasar" or "blazer?"

    Ok, so I see the search term I should be focusing on is oneliner and its derivatives...thanks!

    Also, s2p exists on my system! (seems relatively rare comapared to some of the other suggestions I've gotten, mostly re: modules). Time to "man up" on that!

    Thanks for treating a newbie so kindly.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://544938]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.