1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package Tk::widgets; use Carp; use vars qw($VERSION); $VERSION = '4.005'; # $Id: //depot/Tkutf8/Tk/widgets.pm#4 $ sub import { my $class = shift; foreach (@_) { local $SIG{__DIE__} = \&Carp::croak; # carp "$_ already loaded" if (exists $INC{"Tk/$_.pm"}); require "Tk/$_.pm"; } } 1; __END__