http://www.perlmonks.org?node_id=969495


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