in reply to can't seem to import properly when using require
What could I be missing?
A BEGIN{} block
As in
BEGIN { eval { require Term::ANSIColor ; 1; } and do { Term::ANSIColor ->import( ); Term::ANSIColor ->import( qw/:constants / ); }; }
See also Re: Best way to dynamically use a .pm?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: can't seem to import properly when using require
by ttlgreen (Sexton) on Feb 26, 2012 at 23:35 UTC | |
by tye (Sage) on Feb 27, 2012 at 02:05 UTC |