in reply to pack() returns an unusable string
my $p = "X\x00Y"; system $^X, '-wE', "say '$p'"; [download]
The problem is the zero byte in an argument (at least on Linux).