in reply to Command line question
Here it is spread out:
while (<>) { s+${SOURCE}/${SAMS}/++g; s+${SOURCE}/${SAMLIB}/++g; s+${SOURCE}/${SMCLIB}/+${SOURCE}/${KENO}/+g; if ( not m+^${SOURCE}/+ ) { s+${SOURCE}/+\$$\{OBJECT\}/+g; print } }
This is run on a file named ".depend", and then something else runs after that.
I'm guessing that ${SOURCE} and friends are being interpolated somehow (even though they're in single quotes) because there's nothing in the Perl to give those variables values.
Anyway, this is using "+" instead of "/" for the delimiters on s///, probably so that it can put a literal slash in there without having to backslash it. What it does (for each line) is something like:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Command line question
by ikegami (Patriarch) on Jun 17, 2008 at 23:39 UTC | |
by parv (Parson) on Jun 18, 2008 at 00:48 UTC | |
by kyle (Abbot) on Jun 18, 2008 at 00:34 UTC | |
by igotlongestname (Acolyte) on Jun 19, 2008 at 17:31 UTC | |
by kyle (Abbot) on Jun 19, 2008 at 18:58 UTC |