in reply to begin with perl

I'm guessing the file is encoded using UTF-16, and that your Perl doesn't support UTF-16 source files. (Mine seems to, but maybe that's something ActiveState adds to their Perl???) Save it as UTF-8 instead, then tell Perl it's UTF-8 using use utf8;.

By the way, it doesn't make sense to have two #! lines. Furthermore, the #! sequence has to be the first two characters of the file, and it's not in your case.

Replies are listed 'Best First'.
Re^2: begin with perl
by Anonymous Monk on Oct 31, 2011 at 02:34 UTC
    encoding - allows you to write your script in non-ascii or non-utf8

      Unless you load it via perl -Mencoding=UTF-16le, Perl can't read the encoding pragma to process it.

      Furthermore, "encoding" has the nasty side-effect of breaking \x## sequences in string literals.