Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Problem with pack/unpack asymmetry

by shmem (Chancellor)
on Jun 19, 2019 at 14:49 UTC ( [id://11101574]=note: print w/replies, xml ) Need Help??


in reply to Problem with pack/unpack asymmetry

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'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11101574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-19 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found