in reply to Re: Need Help in Understanding Some Code - Map and Scalar Questions
in thread Need Help in Understanding Some Code - Map and Scalar Questions

Maybe I'm having a senior moment here…

Hee-hee. The code was contained in a script called proc.psgi so it's final value is an anonymous sub. Somewhat like a module must return true, a PSGI app must return its code ref. See http://plackperl.org/. Plack is all kinds of wonderful.

  • Comment on Re^2: Need Help in Understanding Some Code - Map and Scalar Questions

Replies are listed 'Best First'.
Re^3: Need Help in Understanding Some Code - Map and Scalar Questions
by AnomalousMonk (Archbishop) on Oct 31, 2010 at 05:52 UTC
    ... a PSGI app must return its code ref.

    Ah, the mist begins to clear.