My question is: if $x is a simple scalar (unblessed, etc.), is there any value of $x for which test($x) returns 0?use Encode; sub test { my $x = shift; my $y = Encode::decode('iso-8859-1', $x); if ($x eq $y) { return 1; } else { return 0; } }
In reply to question about Encode::decode('iso-8859-1', ...) by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |