geoffleach has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl
INIT {
print "here INIT\n";
}
print "here main\n";
prints
here INIT
here main
as expected. Also (as expected, I assume) when its run with perl -d, the debugger starts at print "here INIT\n";
My question: is there any way to tell Perl NOT to do that, and to stop at the first (next) statement in the body of the code?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Avoiding INIT
by ikegami (Patriarch) on Feb 09, 2010 at 02:20 UTC | |
by geoffleach (Scribe) on Feb 09, 2010 at 16:23 UTC | |
by ikegami (Patriarch) on Feb 09, 2010 at 17:09 UTC | |
by geoffleach (Scribe) on Feb 09, 2010 at 19:03 UTC | |
by ikegami (Patriarch) on Feb 09, 2010 at 21:02 UTC | |
| |
by Corion (Patriarch) on Feb 09, 2010 at 16:25 UTC | |
by geoffleach (Scribe) on Feb 09, 2010 at 18:56 UTC | |
by ikegami (Patriarch) on Feb 09, 2010 at 20:14 UTC | |
|
Re: Avoiding INIT
by planetscape (Chancellor) on Feb 09, 2010 at 00:43 UTC | |
|
Re: Avoiding INIT
by SuicideJunkie (Vicar) on Feb 08, 2010 at 22:33 UTC |