in reply to Stuck in accent-land

When I ran your second last example, it gives me:

SCALAR,(,0x155ac5c,

I believe what you really wanted to say was:

perl -Mutf8 -e "print join(q{,},split(/\b/,$ARGV[0])),qq{\n}" méxico

There should be no \ in front of $ARGV.

Update:

Roy Johnson is right, and I was on win32.

Replies are listed 'Best First'.
Re: Re: Stuck in accent-land
by Roy Johnson (Monsignor) on Dec 30, 2003 at 19:10 UTC
    That depends on whether your OS interpolates variables in doublequotes.

    The PerlMonk tr/// Advocate