| Next | Tricks of the Wizards | 20 |
Consider: main.pl
#!/usr/bin/perl
use Rings qw(Narya Nenya Fred);
And Rings.pm
...
die "Module $package does not export &$name; aborting";
...
This yields
... does not export &Fred; aborting at line 379 of Rings.pm.
Not very useful
With croak instead of die
... does not export &Fred; aborting at line 2 of main.pl.
Similarly carp instead of warn
| Next | ![]() |
Copyright © 2003 M. J. Dominus |