alien_life_form has asked for the wisdom of the Perl Monks concerning the following question:
I need to find the absolute path of the directory containing the file curently being processed (by Template::Toolkit) if at all possible from within the template.
I tried the File and Dir plugins, to no avail. (USE File('.'); File.cwd() gives the cwd of the script, NOT the template).
Ideas anybody? What am I missing?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Finding the dirpath of a template (Template::Toolkit)
by merlyn (Sage) on Jan 23, 2004 at 12:55 UTC | |
|
Re: Finding the dirpath of a template (Template::Toolkit)
by alien_life_form (Pilgrim) on Jan 23, 2004 at 17:26 UTC | |
|
Re: Finding the dirpath of a template (Template::Toolkit)
by mcogan1966 (Monk) on Jan 23, 2004 at 13:15 UTC | |
by merlyn (Sage) on Jan 23, 2004 at 13:30 UTC |