in reply to Re: perl's forte
in thread perl's forte
This is also why (if anyone pays attentsion to such things) I talk a lot, in my posts, about the line between perl scripting and shell scripting, perl "one-liners" and so on. Because, by the same token, I am needs-be using shell all the time, and perl one-liners interface incredibly well with shell scripting. I'm getting off topic here, but ever find yourselves doing stuff like:
or some crazy pipeline that flows in and out of perl one-liners and through other things that perl could do? Hell, perl can sort. Perl can count the number of lines read... why am I using shell for this? It's because if you're alread *thinking* in one language, use that language, even if it is *not* the best tool. The mind-set shift between the tool you're already using and the "best tool" is not worth the advantage that the better tool gives you.something | perl -pe ... | sort | perl -pe ... | wc
Anyway... what that's all about is the fact that perl, by being so versatile, is a *reasonable* tool for pretty much any job... and that's often more useful than the very best tools for each of ten different jobs.
------------ :Wq Not an editor command: Wq
|
|---|