pookybear has asked for the wisdom of the Perl Monks concerning the following question:
Probably a silly question, but how do I get the path to the /public folder in Dancer?
I want to store/read csv files under the public folder, but don't know if Dancer offers any convenience methods to get the base path to the public folder.
The error I get when trying to create a file by saying:
open(FILE, ">>", "myapp/public/file.csv") or die "$!";
is:
No such file or directory in /ur/share/perl5/Dancer/Handler.pm l. 98I'm not sure why it's going to Handler.pm?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get public folders path in Perl Dancer ( config->{public} )
by Anonymous Monk on Aug 17, 2014 at 18:54 UTC | |
by pookybear (Initiate) on Aug 17, 2014 at 19:21 UTC |