develooper Front page | perl.vmsperl | Postings from January 2002

Re: Privileges won't let me "opendir"?

From:
Brad Hughes
Date:
January 29, 2002 13:49
Subject:
Re: Privileges won't let me "opendir"?
Message ID:
3C5717DD.1060102@tgsmc.com
Tom Edelson wrote:
[...]

> If I give myself BYPASS privilege, now I can read the directory through DCL,

> but opendir still doesn't work:
> 
>   $ SET PROCESS /PRIVILEGE=BYPASS
> 
>   $ DIR [.TEMP]
> 
>   Directory $1$DUA330:[HOSTVAX.TOEDEL.SCRATCH.TEMP]
> 
>   FOO.TXT;1           
> 
>   Total of 1 file.
> 
>   $ perl -e "print ""<"", opendir ($dh, ""[.temp]""), "">"" "

 >   <>

I get <1> in this case, also with v5.6.1, so there must be more going on.
What do you get from:

   $  perl -e "$z = opendir($dh,'[.temp]'); print qq([$!][$^E][$z]\n)"

?

Brad





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About