(@first,@second)=unpack("A12A12A24A10",$string); __DATA__ the second array seems empty. #### @first=unpack("A12A12A24A10",$_); @second=splice(@first,24); __DATA__ this one worked fine.