in reply to default config file
I second merlyn's suggestion to use File::Basename for three reasons:
merlyn's regexp/File::Basename solution handles all of these cases and it's quite a bit easier to understand. Plus it doesn't modify $0 which could be useful (or not, depending; you can always modify his to do so).
All in all, that certainly was an interesting way of using split and it took me a minute to figure out what you were doing. :-)
Cheers.
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (bbfu) Re: default config file
by Reverend Phil (Pilgrim) on May 10, 2001 at 01:42 UTC |