Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^7: unpacking wmic command's unicode output

by goibhniu (Hermit)
on Nov 12, 2008 at 20:57 UTC ( [id://723289]=note: print w/replies, xml ) Need Help??


in reply to Re^6: unpacking wmic command's unicode output
in thread unpacking wmic command's unicode output

Now I'm confused. a) how would it hurt? b) Why does it seem not to hurt in my use now?


#my sig used to say 'I humbly seek wisdom. '. Now it says:
use strict;
use warnings;
I humbly seek wisdom.

Replies are listed 'Best First'.
Re^8: unpacking wmic command's unicode output
by ikegami (Patriarch) on Nov 12, 2008 at 21:15 UTC

    how would it hurt?

    >perl -e"print qq{C\x00a\x00p\x00}" | perl -CS -we"print length <>" 6

    Why does it seem not to hurt in my use now?

    Because -CS has no effect if there are no bytes with bit 7 set.

      but that's not -CS's fault, as it prints 6 without -CS as well. Or am I missing something still?


      #my sig used to say 'I humbly seek wisdom. '. Now it says:
      use strict;
      use warnings;
      I humbly seek wisdom.

        Ok, I'll cede that while it has an effect (data from STDIN should be considered decoded), saying it's harmful is incorrect.

        However, it doesn't fix the problem it's suppose to fix. As a solution, it's useless and therefore wrong.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://723289]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found