in reply to Re: Perl won't Open() when called from Java
in thread Perl won't Open() when called from Java

Considering that $syslog_file is assigned a string literal, without any interpolation, I don't think the OP should expect any surprises here.

And neither should we.

Replies are listed 'Best First'.
Re^3: Perl won't Open() when called from Java
by Marshall (Canon) on Feb 23, 2012 at 19:51 UTC
    my $syslog_file = "tail -n 0 -f /var/log/messages |"; doesn't look like a string_literal to me. yes this is...was thinking incorrectly. When I looked at the code, by the time I got to the open(), I was thinking that the op had done a system call to get the output of tail. My goof. But it appears that my $|=1; suggestion did work.