in reply to Re^2: .dancer -- what's it for
in thread .dancer -- what's it for
The only thing I can speculate is that it's a marker for the base directory -- but that would be odd since there's a method for that. On the other hand, I do usually always have such a dot-file marking the root of my app installation on the FS, so that scripts know where to look for library paths, and so on. Most of my scripts start with something like:
... so that they don't have to know where they live. Possibly .dancer has or once had a purpose like that?BEGIN { use Path::Tiny; my $base = path(__FILE__)->parent; $base = $base->parent until -f "$base/.some-dot-file" or $base->is +_rootdir; unshift @INC, "$base/lib"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: .dancer -- what's it for
by kcott (Archbishop) on Jan 25, 2021 at 00:23 UTC |