Ano-Tech Computers
Enter keyword:

Get current working directory with HTML::Mason
Problem:
When running a HTML::Mason component, the current working directory (".") is incorrect.
 
Solution:
Use $m->current_comp->source_dir

http://www.masonhq.com/?FAQ:Components#h-does_mason_set_the_current_working_directory___quot___quot___for_me_
 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles