Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: owner of a file

by tommyw (Hermit)
on Aug 15, 2002 at 15:04 UTC ( #190424=note: print w/replies, xml ) Need Help??


in reply to owner of a file

perldoc -f -X returns...
-o File is owned by effective uid
-O File is owned by real uid.

--
Tommy
Too stupid to live.
Too stubborn to die.

Replies are listed 'Best First'.
Re: Re: owner of a file
by grummerX (Pilgrim) on Aug 15, 2002 at 15:15 UTC
    -O is a file test operator -- it will return either a 1 or "" (or undefined if the file doesn't exist), not the actual UID.

    Update:
    /me is far too hasty. tommyw is right, this does suit the original question.

    -- grummerX

      What? You mean like the original question asked?

      --
      Tommy
      Too stupid to live.
      Too stubborn to die.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://190424]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-05-28 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?