CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Cutting of Path



Mar 20, 2001, 12:36 PM

Post #1 of 2 (181 views)
Cutting of Path Can't Post

Thank You very much for your help in previous replies

but i guess i need littel bit more of it

ok i have hash it gets info from conifguration file(works fine)

$conf{rootdir}="e:/st"; <- let think it's like this :-)

and i have path to file like that

i use this pattern to get dir1/text.txt part but i get it wrong
ok in breif i need to do this:
before: $files[$i]="e:/st/dir1/text.xt";
after: $files[$i]="dir1/text.xt";

Thank You very much


Mar 20, 2001, 1:42 PM

Post #2 of 2 (178 views)
Re: Cutting of Path [In reply to] Can't Post

From the way your code looks, you may be missing an ending "/" in the value of your $conf{rootdir} hash element. Trying adding the "/" to see if that helps. If not then we'll try changing the pattern that you're trying to match.



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives