$SIG{HUP} = sub { delete $INC{'MyRoutines.pl'}; require "MyRoutines.pl +";};
Perl will look in %INC to see what has been 'used'. When it sees something is already in there, it will not re-use/require it. By deleting it, you can force it to re-require.
Cheers,
KM
In reply to Re: Forcing a PERL script to reload libraries
by KM
in thread Forcing a PERL script to reload libraries
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |