in reply to Reloading Modules
I then turned your subroutine into a standalone script, and added a line to use QStat at the beginning. Under Perl 5.6.1 and 5.7.almost3 I receive:package QStat; BEGIN { print "Compiling QStat!\n"; } sub foo {} 1;
Exactly what I expect. Perhaps you need to print the value of $_ within your loop. Your regexp may not be matching.Compiling QStat! Compiling QStat! Subroutine foo redefined at QStat.pm line 7.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reloading Modules
by rendler (Pilgrim) on Feb 03, 2002 at 06:10 UTC | |
by chromatic (Archbishop) on Feb 03, 2002 at 18:23 UTC |