in reply to vec and unpack
For vec see perldoc -f vec and for this specific use of vec see the select documentation, which has just this line together with the explanation.
For unpack see unpack and pack, and possibly perlpacktut.