Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Perl thinks it's the shell!

by Stoffe (Sexton)
on Jun 02, 2005 at 19:01 UTC ( #462991=note: print w/replies, xml ) Need Help??

in reply to Re: Perl thinks it's the shell!
in thread Perl thinks it's the shell!

Verging on OT, but:

Also, I believe Apache uses the #! line rather the file association.
Correct. When I used Windows, I always installed ActivePerl to c:/usr/ instead of the standard c:/Perl/, this way the standard shebang (#!/usr/bin/perl) worked without any conversions, assuming of course that Apache also was on C:

Replies are listed 'Best First'.
Re^3: Perl thinks it's the shell!
by Phaysis (Pilgrim) on Jun 03, 2005 at 14:32 UTC
    What I do is install Activestate Perl in the default spot then create the directory path C:\usr\bin\ into which I drag-drop a copy of perl.exe. Apache uses this executable as detailed in the shebang #!/usr/bin/perl . Since the executable knows where its libs are, everything works like a charm. You can then take your locally-developed scripts and port them to *nix platforms if you want with nary an edit!

    (Ph) Phaysis (Shawn)
    If idle hands are the tools of the devil, are idol tools the hands of god?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2023-10-03 23:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found