Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: perl script inside a shell script

by Desdinova (Friar)
on Dec 12, 2000 at 10:28 UTC ( [id://46220]=note: print w/replies, xml ) Need Help??


in reply to perl script inside a shell script

Personally I have found that there is nothing that i can do in a shell in script that I cant do in a perl script, even if i have to resort to a system() call. If you are going to have to load perl into memory might as well do the whole thing that way. I also work in an envrioment where there are a couple of different shells in use and this way the scripts work the same for everyone. Just my 2 cents.

Replies are listed 'Best First'.
Re: Re: perl script inside a shell script
by myocom (Deacon) on Dec 12, 2000 at 23:51 UTC

    Of course you can do anything in Perl that you can do in a shell script when you can use system. Like so:

    #!/usr/bin/perl system('sh arbitraryshellscript');

    </humor>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://46220]
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: (3)
As of 2024-09-07 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.