in reply to Cutting of Path
Assuming that $files$i will only contain a path name. Your method is trying to match (word.word), which will obviously fail if there are sub dirs.$files[$i] =~ m#^$conf{rootdir}/(.*)$#; # use alternate regex delimit +ers to avoid confusion $files[$i] = $1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Cutting of Path
by tye (Sage) on Mar 21, 2001 at 03:44 UTC | |
by buckaduck (Chaplain) on Mar 21, 2001 at 04:10 UTC | |
|
Re: Re: Cutting of Path
by HTTP-404 (Sexton) on Mar 21, 2001 at 02:28 UTC | |
by HTTP-404 (Sexton) on Mar 21, 2001 at 02:46 UTC | |
by tye (Sage) on Mar 21, 2001 at 03:52 UTC |