What about the print $#ARGV; statement that printed 0 where you seem to have predicted it should print -1?
I take your point about the difference between $#ARGV (highest index) and @ARGV in scalar context (number of elements) and agree I should have used the number of elements. That's a mental block for me and has caused me problems in the past.
I also take your point about complexity. I think I was looking for something parallel in style to open() || die(); for consistency.
In reply to Re^5: unpacking wmic command's unicode output
by goibhniu
in thread unpacking wmic command's unicode output
by goibhniu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |