Time to breathe in the Zen.
Perl stringifies and numifies things at need. Scalars silently become strings for printing, numbers for arithmetic.
When you choose between == and eq don't think of it as forced by the nature of the scalar. Think of it as choosing for yourself how the comparison will be done.
After Compline,
Zaxo
In reply to Re: my least favorite perl feature
by Zaxo
in thread my least favorite perl feature
by waxmop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |