Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Unicodeness and deprecated -C on shebang

by wanradt (Scribe)
on Apr 17, 2009 at 20:14 UTC ( #758329=note: print w/ replies, xml ) Need Help??


in reply to Re: Unicodeness and deprecated -C on shebang
in thread Unicodeness and deprecated -C on shebang

Could you, please, be more specific about your last sentence? How to launch directly?

Nġnda, WK


Comment on Re^2: Unicodeness and deprecated -C on shebang
Re^3: Unicodeness and deprecated -C on shebang
by ikegami (Pope) on Apr 17, 2009 at 20:45 UTC
    Type script.pl, not perl script.pl

      That's how i do. If i had call "perl script.pl", i could insert -C here too. But i don't and in some situations this way is even not possible, AFAIK, for example running script as CGI. My question is: how to call -C (or equivalent) inside of code, cause on first line this is deprecated?

      Nġnda, WK

        Are you on a Windows system? On other systems, the OS executes the #! line as if it was typed at the prompt. Since the system doesn't do it for you, you'll need to do it for the system.

        You could use a batch file. pl2bat will embed the Perl script into a batch file so you don't have to maintain two files.

        Alternatively, you could add -CSDA to the file association.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-07-05 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls