If the values are more than one, you get multiple parameters passed. It's this second parameter that's causing fits, and can be a security leak!uri_escape($values->{$_})
$values->{$_} is a scalar, as hash values can only be scalars. A scalar can be a reference, a number, a string or undef, but not multiple values without dereferencing. Or that's how I have always understood scalars. I don't think there's much point in explicitly putting a scalar in scalar context with the scalar operator.
Could you please give me, if possible, an example of a scalar that returns a two-element list?
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: •Re: incorrect use of URI::Escape?
by Juerd
in thread incorrect use of URI::Escape?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |