in reply to Re: does a script run via plackup knows where it is?
in thread does a script run via plackup knows where it is?

Yep, thanks a lot.

The only thing you need watch out for is that your above $location is actually an object and when you return that from a Dancer2 handler it confuses Dancer greatly.

But it solves my my need in an already bad-smelling hack, so never mind code-smell...

  • Comment on Re^2: does a script run via plackup knows where it is?

Replies are listed 'Best First'.
Re^3: does a script run via plackup knows where it is?
by Your Mother (Archbishop) on May 14, 2018 at 16:59 UTC

    That's partly why I quoted it in the example. It stringifies the object. You can, as you probably already found, do $location->stringify too.