Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

RE: FileMask Conversion

by gnat (Beadle)
on May 17, 2000 at 23:21 UTC ( [id://12221]=note: print w/replies, xml ) Need Help??


in reply to FileMask Conversion

Here's mine:

$permish = 0751; # as returned by stat $b = 01000; ($p = "rwxrwxrwx") =~ s/(.)/($b>>=1)&$permish ? $1 : '-'/ge; print "$p\n";

This doesn't cope with setuid bits, mind you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found