Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by misterw (Acolyte)
on Jun 02, 2005 at 05:23 UTC ( [id://462760]=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!

Thanks so much. I thought I was going NUTS!

In correction to my original post (since updated) it does work with callperl.exe but originally it was

!#/c/apps/pp3.exe
and that didn't work , which added to my confusion(I should have noticed this when posting). Seeing this, I then actually started adding and deleting letters from the shebang line and got what seemed to be random results.
!#/c/apps/callperl.exe and !#/c/apps/callperllllll.exe
worked but
!#/c/apps/callpe.exe
failed

I didn't happen to think that it might be to do with the word perl

Thanks again for the quick response, You get good service here!!!

This is the second time I have come across mysterious (yes, should have read the docs) perl (related - though not perls fault) problems on windows. At first callperl.exe kept stealing spaces from my command line arguments until I realised that you need to double quote all command line parameters containing spaces. This is important for system and exec in c which call CreateProcess on windows platforms.

Matt

Replies are listed 'Best First'.
Re^3: Perl thinks it's the shell!
by monsieur_champs (Curate) on Jun 02, 2005 at 12:55 UTC

    Fellow misterw
    This is a classical. :-) Just do like the emacs users do:

    #!/c/apps/pp3.exe # -*- perl -*-

    This solves your problem, I guess. This solved my problems, when I was dealing with this kind'o'stuff.

    May the gods bless your work.

Re^3: Perl thinks it's the shell!
by omega_monk (Scribe) on Jun 02, 2005 at 11:39 UTC

      Yes, a typo in my post, nothing to do with the problem at hand

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2025-05-20 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.