What is the NULL character in Perl?

$tenNULLs = \x00 x 10;
print $tenNULLs;

Here's the output :
SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)SCALAR(0x10057c)
I was expecting ^@ not SCALAR(0x10057c)

I want to pad a binary file with NULLs.

Thanks,

paul



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to