![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Encode::FB_CROAK eating up strings?by polettix (Vicar) |
on Apr 11, 2016 at 10:26 UTC ( #1160099=perlquestion: print w/replies, xml ) | Need Help?? |
polettix has asked for the wisdom of the Perl Monks concerning the following question:
Hi All!
I hit something weird I'd like to discuss with you. The behaviour below is there up until perl 5.20.2 at least, I didn't try it in anything more recent. I would have expected that all the prints above would just say that the string $chars is 8 characters long... but perl thinks differently: So, it seems that if FB_CROAK is on and the string to encode is not readonly... it gets destroyed. I tried with perl 5.8.8, 5.18.1 and 5.20.2, with the same results. I tried to look in the docs for Encode but to no avail. Tried to Google, but nothing. Tried to supersearch here... nothing. Am I missing anything? Is this what's expected actually, and documented anywhere? Thanks! perl -ple'$_=reverse' <<<ti.xittelop@oivalf Io ho capito... ma tu che hai detto?
Back to
Seekers of Perl Wisdom
|
|