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?
In reply to Re: can't seem to import properly when using require
by Anonymous Monk
in thread can't seem to import properly when using require
by ttlgreen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |