NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Shell is lovely but Perl is better (Score:1)
Bourne shell is lovely. However, as someone who has written a lot of shell and Perl over the years, I use shell only for very short scripts indeed -- or when the script must run on a system that may not have Perl installed.
Many times I've started with a shell script, seen it grow to 50 lines, then 100, then ... only to have to rewrite the damned thing in Perl. I could have saved a lot of time and trouble by writing it in Perl in the first place.
As for shell being shorter, I've found that not to be the case ... once you've written a nice library of Perl functions to perform common shell-like tasks.
I look forward to interest to Tim Maher's upcoming book [consultix-inc.com] to see his take on this.
/-\
Reply to This