[ create a new paste ] login | about

Link: http://codepad.org/as65i4L8    [ raw code | output | fork ]

Perl, pasted on Feb 8:
1
2
3
4
5
6
$s = "Hello world\0hello\0\0";

print $s,"\n";
$t = scalar(unpack("Z*", $s));

print length $t, $t;


Output:
1
2
Hello worldhello
11Hello world


Create a new paste based on this one


Comments: