HTTP-404 has asked for the wisdom of the Perl Monks concerning the following question:
and i have path to file like that$conf{rootdir}="e:/st"; <- let think it's like this :-)
i use this pattern to get dir1/text.txt part but i get it wrong$files[$i]="e:/st/dir1/text.xt";
ok in breif i need to do this:/^$conf{rootdir}(\w+\.\w+)/ <-it works fine if file is in rootdir but +if it's in dir under rootdir, no good
Thank You very muchbefore: $files[$i]="e:/st/dir1/text.xt"; after: $files[$i]="dir1/text.xt";\
2001/03/20 - Edited by jcwren for <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cutting of Path
by Masem (Monsignor) on Mar 21, 2001 at 02:18 UTC | |
by tye (Sage) on Mar 21, 2001 at 03:44 UTC | |
by buckaduck (Chaplain) on Mar 21, 2001 at 04:10 UTC | |
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 | |
|
Re: Cutting of Path
by TGI (Parson) on Mar 21, 2001 at 04:13 UTC |