diff options
author | ivan <ivan> | 2003-06-07 01:47:25 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-06-07 01:47:25 +0000 |
commit | dd4eef1ea9963aaf815638976f4a81b59cdee5a2 (patch) | |
tree | 61dbc7dc67021e1668af4617b7ff494411912451 | |
parent | a53ef240a1e90208f109b7d51c4a02cbbd6e0d1f (diff) |
give a better error message regarding Time::Local on old perls. really.
-rw-r--r-- | FS/FS/cust_main.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 064993296..b6c19e70e 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -4,8 +4,10 @@ use strict; use vars qw( @ISA $conf $Debug $import ); use Safe; use Carp; -BEGIN { eval "use Time::Local 1.05;" if $] < 5.006; }; -use Time::Local qw(timelocal_nocheck); +BEGIN { + eval "use Time::Local 1.05;" if $] < 5.006; + eval "use Time::Local qw(timelocal_nocheck);"; +} use Date::Format; #use Date::Manip; use Business::CreditCard; |