in reply to Using a 2000 Box to Access an Include File from 2003

Aside from the missing ')' on your open line, and the fact I believe you should be using || instead of the or, due to operator precedence, your code looks ok. Can you access this file by entering the UNC into explorer or a browser? If you can't access it by any other means, then you're not going to be able to do so with Perl. It seems more likely a permmissions problem then any other.

HTH

Sweetblood

  • Comment on Re: Using a 2000 Box to Access an Include File from 2003

Replies are listed 'Best First'.
Re^2: Using a 2000 Box to Access an Include File from 2003
by bkiahg (Pilgrim) on Jun 17, 2004 at 23:24 UTC
    Yes I can map to it and open it with a browser. But when I try and access it using the cgi it fails. It's almost as if the windows boxes aren't transferring the permissions of the user executing the cgi.

    Anything on 2003 that I may need to turn on? It has everything shut off by default.
Re^2: Using a 2000 Box to Access an Include File from 2003
by Anonymous Monk on Jun 18, 2004 at 02:20 UTC
    the fact I believe you should be using || instead of the or, due to operator precedence
    You believe wrong
    C:\>perl -MO=Deparse,-p -e"open F, $f or die $!" (open(F, $f) or die($!)); -e syntax OK C:\>perl -MO=Deparse,-p -e"open F, $f || die $!" open(F, ($f || die($!))); -e syntax OK C:\>perl -MO=Deparse,-p -e"open(F, $f) || die $!" (open(F, $f) or die($!)); -e syntax OK C:\>perl -MO=Deparse,-p -e"open(F, $f) or die $!" (open(F, $f) or die($!)); -e syntax OK