So this is probably the most useless module ever,
but I thought it was kind of fun, because... I don't know.
I like writing things that seem like English but are
actually Perl, I guess.
Usage:
Where EXPR is, of course, an expression. For example:use Silly::Die; EXPR or die trying;
open FILE, "foo" or die trying;
package Silly::Die; sub import { my $class = shift; my $caller = caller; no strict 'refs'; *{"${caller}::trying"} = \&{"${class}::trying"}; } sub trying { $! } 1;
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Completely Useless
by btrott (Parson) on Aug 12, 2000 at 05:45 UTC | |
RE: Completely Useless
by mwp (Hermit) on Aug 12, 2000 at 04:30 UTC |
Back to
Cool Uses for Perl