Sorry, you're asking too many questions at the same time to be easily answered in one thread.
> My GUESS is that the "&" and ">>" are some sort of binary operators, ... I tried to google
First step, plz try to read the docs and tell us what remains unclear: perldoc perlop
(BTW: perlop is the second hit for perl binary operator )
> but can someone explain what "&07777" does
'&' is not a part of the word but a "binary and" operator. But I agree that the missing space doesn't improve readability.
> besides using a magic number
Do you know how file-permissions are managed in unix-like systems?
Literal octal numbers start with a 0 followed by octal digits. see perlnumber
see also oct for a discussion of your code.
Cheers Rolf
( addicted to the Perl Programming Language)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.