Re: help with the backtick operator

2002-01-18 Thread Jenda Krynicky
From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]> > Basically, I have the following question(s) about the backtick operators: > In a scalar string context, will a shell command called by the backtick > operator return ALL lines? i.e., if egrep returns multiple lines, will >

help with the backtick operator

2002-01-18 Thread Matthew Weier O'Phinney
I'm trying to call egrep from a perl script using the backtick operator -- I need to parse the output from egrep to see if additional information is contained, something like: $parseFile = `egrep -d skip \\/dev/null` if ($parseFile =~ /method\s*=\s*\"?post/ ) { do this; } (I realize I could prob