Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: shebang: automagically obtaining

by nutshell (Beadle)
on Oct 05, 2002 at 04:04 UTC ( #202987=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: shebang: automagically obtaining
in thread shebang: automagically obtaining

"But, if you could tell us why you need to do something like this, we might be able to offer an alternative solution."
No real reason - just would help when distributing scripts if people didn't have to worry about the shebang line.

The only reason I asked was because I thought I saw it done before.

Thanks anyway,
--nutshell

  • Comment on Re: Re: Re: Re: shebang: automagically obtaining

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: shebang: automagically obtaining
by BUU (Prior) on Oct 05, 2002 at 04:20 UTC
    I believe there is a bash hack to locate the perl interpreter and run it, is that what you are talking about?
Re: Re: Re: Re: Re: shebang: automagically obtaining
by jjdraco (Scribe) on Oct 05, 2002 at 04:20 UTC
    well, from the little that i know the only thing i could say is, if you want to run the script in win32 that you got from a *NIX system, then the shebang doesn't matter since you name the file with a .pl ext and windows uses that to determane that its a perl script. so you could keep the original shebang from the previous system unalterate and the script would still work.
    And for any other ideas, you'll have to ask some one else, I'm no expert.

    jjdraco
    learning Perl one statement at a time.
      If you're running the script as a CGI under Apache on Win32 the shebang is required by default.
        that I didn't not know, but I haven't tried writing any CGI scripts either. I had just seen some one ask a similar question on this site and that was the answer given.

        jjdraco
        learning Perl one statement at a time.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2022-10-06 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?