in reply to Forcing a PERL script to reload libraries
$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
|
|---|