Re: "Undocumented feature" of Encode::{en,de}code()

2004-12-16 Thread Radoslaw Zielinski
Gisle Aas <[EMAIL PROTECTED]> [16-12-2004 15:48]: > Radoslaw Zielinski <[EMAIL PROTECTED]> writes: >> What's the point of lines 151 and 167 in Encode.pm? Respectively: >> $_[1] = $string if $check; [...] > This problem is fixed in Encode-2.0901 by the p

"Undocumented feature" of Encode::{en,de}code()

2004-12-16 Thread Radoslaw Zielinski
Hello, What's the point of lines 151 and 167 in Encode.pm? Respectively: # sub encode $_[1] = $string if $check; # sub decode $_[1] = $octets if $check; I really can't see a point in overwriting the input value... Why only "if $check"? An example of evilness: $ perl -MEnco