Note that v-strings aren't required to demonstrate this oddity.
> perl -wle 'print -"abc"' -abc > perl -wle 'print -"/abc";' Argument "/abc" isn't numeric in negation (-) at -e line 1. -0
Which I first considered a bug in unary minus (thinking it should only act this way on bare words), but I think it is a reasonable choice if it is intentional and documented (it just isn't how I had the feature explained to me).
- tye
In reply to Re^2: version string oddities (-bug)
by tye
in thread version string oddities
by chrisdolan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |