Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Perl won't Open() when called from Java

by JavaFan (Canon)
on Feb 23, 2012 at 19:44 UTC ( [id://955817]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://955817]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found