http://www.perlmonks.org?node_id=434515


in reply to Re^3: I usually debug via...
in thread I usually debug via...

Hm. Could be that cmd.exe shell and quoting. Maybe this one will work:

perl -e '$a=qq/447564652c2067657420726964206f662057696e646f 7773/;print (chr hex $1) while ($a=~s/(^.{2})//)'

Or with double-quotes:

perl -e "$a=qq/447564652c2067657420726964206f662057696e646f 7773/;print (chr hex $1) while ($a=~s/(^.{2})//)"
I don't have access to any Windows machine at all to try it on.

Replies are listed 'Best First'.
Re^5: I usually debug via...
by planetscape (Chancellor) on Aug 16, 2010 at 11:38 UTC

    FWLIMBW at this late date, the former works for me on Cygwin, the latter on Strawberry Perl.

    HTH,

    planetscape