Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Can I get a -S switch that doesn't care about the execute bit?

by Anonymous Monk
on Aug 23, 2011 at 02:24 UTC ( [id://921785]=note: print w/replies, xml ) Need Help??


in reply to Can I get a -S switch that doesn't care about the execute bit?

These are your options
  • compile your own perl that overrides find_script
  • symlink perl to a shell script that does the searching and finding like perl -S and then invokes perl with full paths
  • install your scripts using Makefile.PL (or Build.PL) , or set the execute bit when you install them
  • Comment on Re: Can I get a -S switch that doesn't care about the execute bit?

Replies are listed 'Best First'.
Re^2: Can I get a -S switch that doesn't care about the execute bit?
by DrWhy (Chaplain) on Aug 23, 2011 at 02:43 UTC
    Hmm... Thanks for the feedback. I don't suppose anyone has thought about creating a pragma module that lets you make modifications to find_script's behavior? Or does that come to early in perl execution to be amenable to modification by a pragma. If it could work of course it would be something that could only be usefully used as a -m/-M argument on the perl command line, I would guess.

    --DrWhy

    "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

      Hmm... Thanks for the feedback. I don't suppose anyone has thought about creating a pragma module that lets you make modifications to find_script's behavior? Or does that come to early in perl execution to be amenable to modification by a pragma. If it could work of course it would be something that could only be usefully used as a -m/-M argument on the perl command line, I would guess.

      There was this one guy, but a rock fell from the sky and crushed him :)

      Hey, my Win32 doesn't croak if there is no execute bit, you can switch to Win32 :D

      No, it doesn't happen too early ... UTSL

        Will wonders never cease??? Something Win32 is good for...

        I don't have time to learn how to make my own pragma to accomplish this, so I'll probably go the make-all-the-scripts-executable route.

        --DrWhy

        "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-25 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found