Perl: the Markov chain saw | |
PerlMonks |
Re^2: pack() returns an unusable stringby GrandFather (Saint) |
on May 26, 2021 at 22:30 UTC ( [id://11133097]=note: print w/replies, xml ) | Need Help?? |
Guessing is sometimes fine, but the OP gave an entire and complete test script which you can examine and even run. If I make a small modification to the test script given we can test the theory:
prints:
running a 64 bit build of 5.32. Note that there is an ETX character between the final 3 and the @ character, which, when you think about it, is the string that the unpack is showing us so for the success case there is a trailing @ and it isn't swallowing the trailing '.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|