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

2004-12-23 Thread Nick Ing-Simmons
Radoslaw Zielinski <[EMAIL PROTECTED]> writes: >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

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 patch found at >

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

2004-12-16 Thread Gisle Aas
Radoslaw Zielinski <[EMAIL PROTECTED]> writes: > 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 o

"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