in reply to Re: In the BEGINing there were no forks?
in thread In the BEGINing there were no forks?

Yes. I know. Hence my question. I could use some stupid method of a system call to call my perl code again, and work out a crazy way to make sure that that only happens once, in the BEGIN block. But that is ugly. Is there a cunning nice way?
  • Comment on Re^2: In the BEGINing there were no forks?

Replies are listed 'Best First'.
Re^3: In the BEGINing there were no forks?
by RazorbladeBidet (Friar) on Feb 14, 2005 at 20:24 UTC
    Ahh, I see. My apologies

    Well, for the child, you're pretty much hosed outside the begin block, so maybe split up the BEGIN block into one file and the logic into another?

    BEGIN { $pid = fork(); require "logic.pl" if $pid; } require "logic.pl";


    Dunno, just a thought. Good luck with it