in reply to Re^2: Command line question
in thread Command line question
Ordinarily, I'd agree with you, but I get the impression that the OP's code works as-is, and he's just trying to figure out what it does and how. My guess is that the whole thing is in double quotes, and what perl actually sees is:
BEGIN { $^I = ""; } LINE: while (defined($_ = <ARGV>)) { s[value-of-SOURCE/value-of-SAMS/][]g; s[value-of-SOURCE/value-of-SAMLIB/][]g; s[value-of-SOURCE/value-of-SMCLIB/][value-of-SOURCE/value-of-KENO/ +]g; if (not m[^value-of-SOURCE/]) { s[value-of-SOURCE/][$${OBJECT}/]g; print $_; } }
That $${OBJECT} in there still seems wrong, though, and the OP is ambiguous about whether this is working code or not, so I'm pretty far from sure about this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Command line question
by igotlongestname (Acolyte) on Jun 19, 2008 at 17:31 UTC | |
by kyle (Abbot) on Jun 19, 2008 at 18:58 UTC |