Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
BEGIN { $0 =~ '(.*[\\\/])\w+\.\w+$'; $curr_dir = $1 || "./"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Current Directory
by davidrw (Prior) on Sep 14, 2005 at 13:30 UTC | |
by Anonymous Monk on Sep 14, 2005 at 13:46 UTC | |
by davidrw (Prior) on Sep 14, 2005 at 14:11 UTC | |
|
Re: Current Directory
by Hue-Bond (Priest) on Sep 14, 2005 at 13:35 UTC | |
|
Re: Current Directory
by fizbin (Chaplain) on Sep 14, 2005 at 14:20 UTC | |
|
Re: Current Directory
by svenXY (Deacon) on Sep 14, 2005 at 13:33 UTC | |
|
Re: Current Directory
by strat (Canon) on Sep 15, 2005 at 07:44 UTC | |
|
Re: Current Directory
by sh1tn (Priest) on Sep 14, 2005 at 13:36 UTC |