Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: find out, if perl is started with the -c switch

by Excalibor (Pilgrim)
on Sep 23, 2005 at 09:37 UTC ( [id://494448]=note: print w/replies, xml ) Need Help??


in reply to find out, if perl is started with the -c switch

Try checking for the value of variable $^C...

$ perl -c -e 'BEGIN { print "$^C\n" }' 1 -e syntax OK $ perl -e 'BEGIN { print "$^C\n" }' 0 $

See perlvar for more info.

Good luck,

--
our $Perl6 is Fantastic;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-03-19 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found