morgon has asked for the wisdom of the Perl Monks concerning the following question:
I have a script that I run via plackup and want to run it on different machines with the different directory-layouts.
The script accesses some other resources can be found relative to the script-location.
I'd like to be able to simply move the script around and wonder if there is a way for the running script to find it's location.
Or to clarify: Is there a way for a script that is run via "plackup /path/to/somewhere/myscript.psgi" to figure out /path/to/somewhere at runtime in a handler?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: does a script run via plackup knows where it is?
by Your Mother (Archbishop) on May 14, 2018 at 16:21 UTC | |
by morgon (Priest) on May 14, 2018 at 16:33 UTC | |
by Your Mother (Archbishop) on May 14, 2018 at 16:59 UTC | |
|
Re: does a script run via plackup knows where it is?
by dsheroh (Monsignor) on May 15, 2018 at 07:24 UTC |