What I'm trying to do is use $ENV{'SCRIPT_FILENAME'} as the path to the script and then as I know the name of the script substitute that name for the names of other files in the same directory the permissions of which I will than go on and change.
it is especially that paragraph i'm simply not understanding.
please can you add some commas or other punctuation, i'm not
a native english speaker.
but at least i can understand your code. your replacing
the string 'permissions.cgi' (1) in $path three times. the first
time it is substituted it will be gone! i hope that's clear.
so what do you have in there before and what do you want in there
after? that's something we can work on.
(1) besides that, please note, that you're not replacing the
string permissions.cgi but the dot stands for (almost) any character. you want to put a backslash before it.
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.