my @intarray = unpack 'c*', "perl string"; my @intarray = map ord, split //, "perl string";