| UNIX | Perl | Origin |
|---|---|---|
| cut | split | built-in |
| if | if, unless | built-in |
| while | while, for, foreach | built-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...)
In reply to Re: UNIX 'command' equivalents in Perl
by RMGir
in thread UNIX 'command' equivalents in Perl
by cdarke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |