Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Shell converted to Perl

by clemburg (Curate)
on Aug 09, 2001 at 21:07 UTC ( [id://103506]=note: print w/replies, xml ) Need Help??


in reply to Shell converted to Perl

No. There is no such thing.

The standard answer to this in the Perl FAQ (old versions) was:

2.32) How can I convert my shell script to Perl? Larry's standard answer for this is to send your script to me (Tom Christiansen) with appropriate supplications and offerings. :-( That's because there's no automatic machine translator. Even if you were, you wouldn't gain a lot, as most of the external programs would still get called. It's the same problem as blind translation into C: you're still apt to be bogged down by exec()s. You have to analyze the dataflow and algorithm and rethink it for optimal speedup. It's not uncommon to see one, two, or even three orders of magnitude of speed difference between the brute-force and the recoded approaches.

For the newest answer, try:

perldoc -q shell.+script

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com

Replies are listed 'Best First'.
Re: Re: Shell converted to Perl
by chromatic (Archbishop) on Aug 10, 2001 at 04:21 UTC
    For various values of "no such", merlyn actually wrote something along those lines.

      Ah! Thanks! I did not know that. Things change ... ;-) ...

      Christian Lemburg
      Brainbench MVP for Perl
      http://www.brainbench.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://103506]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found