Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Auto shebang hacking

by rinceWind (Monsignor)
on Mar 12, 2002 at 19:30 UTC ( #151278=note: print w/replies, xml ) Need Help??


in reply to Re: question about perl
in thread How do I change the shebang line for all perl scripts in a directory

I had some thoughts about this very subject posted to a different forum.

We spend a lot of effort with modules, verifying that all files are present, they work, etc. before putting them live.

What about their poor relations, the scripts? A script writer could implement tests in an equivalent of make test. The install step could copy to cgi-bin or wherever the script needs to go, changing the shebang line in the process, having worked out where perl lives.

Could Extutils::MakeMaker be used to do this, or is this too hard-coded for modules and h2xs?

Replies are listed 'Best First'.
•Re: Auto shebang hacking
by merlyn (Sage) on Mar 12, 2002 at 20:03 UTC
    Check the only entry in my CPAN directory for my script that does shell-to-Perl translation. It shows how to hack the shebang line during installation, and also shows tests for the script.

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2018-11-15 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (188 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 18:53 UTC) Welcome new users!