Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: UNIX 'command' equivalents in Perl

by RMGir (Prior)
on Jul 18, 2007 at 09:58 UTC ( [id://627223]=note: print w/replies, xml ) Need Help??


in reply to UNIX 'command' equivalents in Perl

UNIXPerlOrigin
cutsplitbuilt-in
ifif, unlessbuilt-in
whilewhile, for, foreachbuilt-in

Of course, cut usually winds up being in a complex pipe with sed, sort, and join, so if you see cut in a pipe sequence, odds are you've found a perfect piece of shell script to convert to perl...

And complex conditional or looping structures are much easier in perl than shell (at least to me...)


Mike

Log In?
Username:
Password:

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

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

    No recent polls found