steves has asked for the wisdom of the Perl Monks concerning the following question:
This one is stumping me. I have a very simple driver script that literally looks like this:
The print statement is sometimes issued twice with the same PID! Any idea how that can be? There's a lot of code under the package being invoked. I checked AUTOLOAD paths and have found nothing there ... but since there's no sub, I would expect to find nothing.!/usr/local/bin/perl use strict; use Our::UI::CommandLine; print ">> [PID $$] calling ui_run\n"; Our::UI::CommandLine->ui_run();
This is on Solaris, Perl 5.6.1. It seems to happen mostly or maybe fully when I cron it. I'm running more definitive tests for that now. It also goes away if I short-circuit big calling paths below, but those are so deep it would probably take days or weeks to narrow it down that way. Stack traces, using caller() are identical. Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: main script invoked twice
by etcshadow (Priest) on Mar 29, 2004 at 00:15 UTC | |
by steves (Curate) on Mar 29, 2004 at 00:24 UTC | |
by sfink (Deacon) on Mar 29, 2004 at 02:16 UTC | |
by etcshadow (Priest) on Mar 29, 2004 at 03:15 UTC | |
|
Re: main script invoked twice
by hawtin (Prior) on Mar 29, 2004 at 00:12 UTC | |
by Fletch (Bishop) on Mar 29, 2004 at 02:43 UTC | |
|
Re: main script invoked twice
by steves (Curate) on Mar 29, 2004 at 04:21 UTC |