HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.30.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 06:42:00 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/.cpan/build/YAML-LibYAML-v0.902.0-0/t/string_nulls.t
use FindBin '$Bin';
use lib $Bin;
use TestYAMLTests tests => 2;

my $yaml = Dump "foo\0bar";

is $yaml, <<'...', 'Strings with nulls can Dump';
--- "foo\0bar"
...

my $str = Load $yaml;
is $str, "foo\0bar", 'Strings with nulls can Load';