in reply to encoding with filtering from command line

Without knowing the syntax, I would try perl -Mencoding=whatever,Filter=>1 yourscript

Doesn't that work?

Replies are listed 'Best First'.
Re^2: encoding with filtering from command line
by polettix (Vicar) on Apr 07, 2005 at 15:19 UTC
    Right or wrong, I think some quoting would be necessary, so as to avoid redirection to a file named "1", at least under *nix. In this case, a double quoting should be fine and system-independent:
    perl "-Mencoding=whatever,Filter=>1" yourscript

    Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")

    Don't fool yourself.