in reply to Determine type of variable

In perl in general, you don't worry about the type of values. Use it and perl will (in most cases) do the right thing. pack and unpack are intended for manipulating raw values (as you would typically use in C). As for the type of variables, that's what the initial sigil is for ($@%*& et al).