Is -C useless?

Paul Orrock paulo at digitalcraftsmen.net
Thu Sep 11 13:24:34 BST 2008



Paul LeoNerd Evans wrote:
> Consider the following:
> 
>   #!/usr/bin/perl -COL
> 
>   print "Hello w\xe9rld\n";
> 
>   $ perl test.pl 
>   Too late for "-COL" option at test.pl line 1.

Ermmm... that's because by the time you get to the -COL switch you're 
already inside the perl interpreter that you called from the command line

I think you meant

$ chmod 755 test.pl
$ ./test.pl

Which gives me the output you want : Hello wérld

Unless I've missed something, which is highly likely

regards,

Paul

-- 
Paul Orrock                  Digital Craftsmen
Lead SysAdmin         www.digitalcraftsmen.net
Exmouth House, 3 Pine Street, London, EC1R 0JH
Tel: 020 7183 1410          Fax: 020 7099 5140


More information about the london.pm mailing list