Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > b04ea060d860fef85d9ac266dee5b388 > files > 29

perl-Data-Util-0.630.0-6.mga5.i586.rpm

#!perl -w
# synopsis.pl
use strict;
use Data::Util qw(:all);

# print the file for example
open my $this, '<', __FILE__;
print while <$this>;

sub f{
	printf "f(%s) called.\n", neat($_[0]);

	my $ary_ref = array_ref shift;
}

sub g{
	f([undef, 42]);      # pass
	f({foo => "bar\n"}); # FATAL
}

g();

__END__