in reply to sh to pl?
UPDATE:
I couldn't find the quote to properly attribute it, but perldoc seems to know all. :)
%perldoc -q shell script
Found in /System/Library/Perl/pods/perlfaq8.pod
How can I convert my shell script to perl?
Learn Perl and rewrite it. Seriously, there's no simple converter. Things that are awkward to do in the shell are easy to do in Perl, and this very awkwardness is what would make a shell->perl converter nigh-on impossible to write. By rewriting it, you'll think about what you're really trying to do, and hopefully will escape the shell's pipeline datastream paradigm, which while convenient for some matters, causes many inefficiencies.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
simple converter :-)
by jaldhar (Vicar) on Nov 22, 2002 at 05:13 UTC | |
by Louis_Wu (Chaplain) on Nov 22, 2002 at 05:21 UTC |