go ahead... be a heretic | |
PerlMonks |
Re: Problem with pack/unpack asymmetryby shmem (Chancellor) |
on Jun 19, 2019 at 14:49 UTC ( [id://11101574]=note: print w/replies, xml ) | Need Help?? |
My questions: is this a bugette, a feature, or am I having a senior moment? Most likely all of them. A is ASCII, and probably doesn't honour control chars at end of string, i.e. the C string terminator \0 - bug?. update: Try with my $string = qq{abc\cL};
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|