Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: file::find usage with apache question

by Yoshiro (Novice)
on May 08, 2012 at 16:11 UTC ( [id://969495]=note: print w/replies, xml ) Need Help??


in reply to Re^3: file::find usage with apache question
in thread file::find usage with apache question

Thank you Aaron and Corion

Aaron, I have tried at first 'myDir' without slashes but it didn't work. I realize now it was because my script was running from 'cgi-bin' so it was looking in '/cgi-bin/myDir'.

Corion, a good observation, noted.

Yoshiro

  • Comment on Re^4: file::find usage with apache question

Replies are listed 'Best First'.
Re^5: file::find usage with apache question
by tinita (Parson) on May 09, 2012 at 10:39 UTC
    well, if you are running this in a cgi script, another possibility would be using FindBin to avoid an absolute path.
    find(..., "$FindBin::Bin/../myDir");

      Thank you tinita,

      An idea worth considering.

      Yoshiro

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://969495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-16 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found