/
usr
/
share
/
doc
/
perl-Error
/
examples
/
/usr/share/doc/perl-Error/examples
mkdir
upload
Name
Size
Mode
Actions
next-in-loop/
-
0755
rm
example.pl
719
0644
edit
dl
rm
warndie.pl
382
0644
edit
dl
rm
Edit:
/usr/share/doc/perl-Error/examples/warndie.pl
(382B)
#!/usr/bin/perl -w require Error; if( $ARGV[0] ) { import Error qw( :warndie ); print "Imported the :warndie tag.\n"; print "\n"; } else { print "Running example without the :warndie tag.\n"; print "Try also passing a true value as \$ARGV[0] to import this tag\n"; print "\n"; } sub inner { shift->foo(); } sub outer { inner( @_ ); } outer( undef );
Save
cmd:
run