I am writing a small perl script to scan thru a list, in succession, for a
series of values
p(0.9)= ... p(-0.9)=
when I use a pattern without the parenthesis, it works fine, as in:
for ($p=0.9; $p>-1; $p-=0.1)
while (<FILE>) {
/$p/ {
print;
}
}
However when I add in the parenthesis, escaped or not, whether directly in
the pattern, or earler in a substitution [$pp= "p($p)=" or $pp="p\($p\)=" or
similar variants] or the 'p' [the character p] or use '.' instead of
parenthesis, I get no output
None of my perl reference manuals seem to clearly address the issue
--
David
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs