Don't ask to ask, just ask | |
PerlMonks |
Re^3: SNTP pack and unpackby choroba (Cardinal) |
on Mar 07, 2015 at 02:03 UTC ( [id://1119151]=note: print w/replies, xml ) | Need Help?? |
As can be easily demonstrated by
pack evaluates the first argument in scalar context. If you supply an array, it turns into the number of its members. You got 1, which is double weird, as it means the array only had one member - you have to supply two things to pack, the template and the list (and, as we have just seen, you can't bundle them in one array).
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|