On 3/3/06, Families Laws <[EMAIL PROTECTED]> wrote:

> what is the purpose of ". 2>&1 |" ? This is a AIX
> machine.  Thanks.

>         open(FILEHANDLE, "$PATH_TO_WSADMIN -f $tmpFile
> ". ' 2>&1 |');

The '2>&1' part is shell syntax meaning to redirect what would go to
filehandle 2 (STDERR) to filehandle 1 (STDOUT). In other words,
FILEHANDLE will return data from both output streams. This trick is
covered in perlfaq8.

This use of the vertical bar ('|') character is a pipe open, covered
in perlopentut.

The dot ('.') is the string concatenation operator; see perlop.

Does that give you what you need? Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to