Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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


Comment on Re: UNIX 'command' equivalents in Perl

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 musing on the Monastery: (18)
As of 2015-07-28 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (256 votes), past polls