$#ARGV is 0 whether there are zero or 1 arguments.
That's not true. $#ARGV is -1 when there are no arguments.
And by the way, I think -CS is unnecessary and even harmful. wmic probably outputs characters based on your local, so use open ':std', ':locale'; would be more appropriate.
In reply to Re^2: unpacking wmic command's unicode output
by ikegami
in thread unpacking wmic command's unicode output
by goibhniu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |