in reply to system( ), printing output & matching
So, what I think is happening is that Perl has the file open, then you use system calls to write to it. Then you do the second Perl open, which causes perl to flush out what it thinks should be in the file (which is nothing) and so you land up with an empty file.
check out Net::Ping for an easier way to do the pinging
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: system( ), printing output & matching
by zuinc (Novice) on Apr 05, 2002 at 20:16 UTC | |
by I0 (Priest) on Apr 06, 2002 at 02:22 UTC |