Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: __FILE__ fails in Mojolicious app built with PAR::Packer

by metaperl (Curate)
on Sep 10, 2011 at 20:40 UTC ( #925287=note: print w/ replies, xml ) Need Help??


in reply to Re^2: __FILE__ fails in Mojolicious app built with PAR::Packer
in thread __FILE__ fails in app built with PAR::Packer

I also think it's a less-than-appealing that __FILE__ is not always absolute
Wait a minute! I take that back! if __FILE__ were absolute, it would be hardcoded to the path of a file outside of my PAR archive and my scripts would never run on a remote site!



The mantra of every experienced web application developer is the same: thou shalt separate business logic from display. Ironically, almost all template engines allow violation of this separation principle, which is the very impetus for HTML template engine development.

-- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"


Comment on Re^3: __FILE__ fails in Mojolicious app built with PAR::Packer

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://925287]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2015-07-07 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls