in reply to Re: perl file status and sudo
in thread perl file status and sudo

Thank You. We use HP-UX and RHEL linux. I do not need more than read-only access. I just would like to use perl only, and not bounce to the shell if not required.

Replies are listed 'Best First'.
Re^3: perl file status and sudo
by JavaFan (Canon) on Mar 22, 2012 at 13:25 UTC
    I'm confused. Are you saying you can do if [ -f file ] in the shell, but not if (-f "file") from a Perl program?

      -f or -e work fine in my perl as me, but I need to ascertain the existence of files I do not have standard *NX access to, so I need something like sudo.

        If you need sudo, then use sudo.

        I don't see a technical problem that needs to be solved.

      The issue is, I have been told by in-house staff that is is not possible in sudo. I though someone might know if it is, or if there is an alternate.

        *What* isn't possible in sudo?