Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: UNIX 'command' equivalents in Perl

by RMGir (Prior)
on Jul 18, 2007 at 09:58 UTC ( #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
Node Status?
node history
Node Type: note [id://627223]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2016-06-30 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (400 votes). Check out past polls.