Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: perl script inside a shell script

by Blue (Hermit)
on Dec 12, 2000 at 03:14 UTC ( [id://46177]=note: print w/replies, xml ) Need Help??


in reply to Re: perl script inside a shell script
in thread perl script inside a shell script

Ewwww.

I was thinking that it would be pretty trivial to embed Perl one liners in the shell script. This, on the other hand is just ... just .. well, I don't know. Not right. Not even wrong. It just is.

Hmmm. Barring something like this, or a perl one-liner, I can't think of any easy way to do it in one script that starts as a shell. The shebang (#!) is a one-time-deal, no changing type mid way though.

BTW, just for curiosity, could you have the base be a Perl program that called shell script stuff? The requirement to have shell and Perl in the same file is somewhat unusual.

=Blue
...you might be eaten by a grue...

  • Comment on Re: Re: perl script inside a shell script

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-09-17 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    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.