go ahead... be a heretic | |
PerlMonks |
Re^3: __FILE__ fails in Mojolicious app built with PAR::Packerby metaperl (Curate) |
on Sep 10, 2011 at 20:40 UTC ( [id://925287]=note: print w/replies, xml ) | Need Help?? |
I also think it's a less-than-appealing that __FILE__ is not always absoluteWait 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"
In Section
Seekers of Perl Wisdom
|
|