[ale] Die on use

Christopher Fowler cfowler at outpostsentinel.com
Thu Apr 24 10:23:42 EDT 2003


Is it possible to do the following:

use Net::Telnet or die "WTF? Install Net::Telnet\n";

our

use Net::Telnet or loadNetTelnet();

sub loadNetTelnet {
  use CPAN;
  print "Installing Net::Telnet\n"
  install Net::Telnet;
  exec @ARGV;
}

This is just some pseudo code.  May not work.

Chris




_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list