in reply to Re: Testing for -c perl switch
in thread Testing for -c perl switch

$^C does the trick.

I need to update my Camel book. It's only the 2nd edition and did not cover $^C

Replies are listed 'Best First'.
Re^3: Testing for -c perl switch
by diotalevi (Canon) on Apr 19, 2007 at 00:24 UTC

    Your manual came with your copy of perl. Its up to date.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      If he's running Debian, no it didn't. It didn't come with all the core modules either.