Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Yoshiro (Novice)
on May 08, 2012 at 16:11 UTC ( #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
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
Node Status?
node history
Node Type: note [id://969495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-04-20 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls