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>