Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: Can't open file using Perl as CGI

by JennieInMI (Acolyte)
on Dec 27, 2012 at 02:14 UTC ( #1010439=note: print w/replies, xml ) Need Help??

in reply to Re: Can't open file using Perl as CGI
in thread Can't open file using Perl as CGI

Thank you!

I am embarassed to say how long I tried to figure out why the heck Perl could not find a file in the same directory as my script. I wasn't executing the script from the script's directory! Was typing in the whole path to the script and everything. duh! I'm fairly new, but even I know better than that. Thank you for pointing out the (much needed) obvious.

If you were in the same room I would hug you.


  • Comment on Re^2: Can't open file using Perl as CGI

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010439]
[ikegami]: That should be ${ $hash{$key} }[$_] because it's $a[$_] when you don't use a ref.
[oiskuu]: James, that's an array slice you have there (over some hash value)
[ikegami]: Mini-Tutorial: Dereferencing Syntax

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-04-27 19:30 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (512 votes). Check out past polls.