[ale] Die on use

Fletch fletch at phydeaux.org
Thu Apr 24 10:57:58 EDT 2003


>>>>> "Christopher" == Christopher Fowler <cfowler at outpostsentinel.com> writes:

    Christopher> Is it possible to do the following: use Net::Telnet
    Christopher> or die "WTF? Install Net::Telnet\n";

eval { require Net::Telnet; };

if( $@ ) {
  die <<EOT;
You don't have Net::Telnet installed.  Please install a copy from your
favourite CPAN mirror.

perl -MCPAN -e 'install( "Net::Telnet" )'
EOT
}
 
-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 294-0820 (m)      |  scary questions." -- Jules                =(___)=
                      |                                               U
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list