unpack TEMPLATE,EXPR unpack does the reverse of pack: it takes a string and expands it out into a list of values. (In scalar context, it returns merely the first value produced.) #### sub ordinal { unpack("c",$_[0]); } # same as ord()