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

Re^4: Unicodeness and deprecated -C on shebang

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


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

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


Comment on Re^4: Unicodeness and deprecated -C on shebang
Re^5: Unicodeness and deprecated -C on shebang
by ikegami (Pope) on Apr 18, 2009 at 21:18 UTC

    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.

      No, i use Linux. Same problem on Debian and Kubuntu From perl 5.10 -C option is not allowed on first line (#!-line). If i still put it, script is terminated with exclamation:

      Too late for "-C63" option at ... line 1.
      That's whole my problem here.

      Nġnda, WK

        That makes no sense. Did you check if a bug was submitted? Sure sounds like one. (It's not realizing it received -C63 from the command line when it sees it on #!.) All my unix systems all have 5.8.8, and they don't exhibit this problem, so I can't do much more for you.

        Update: See perlbug RT#59652. I wish I had 5.10 to revisit the issue.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-10 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls