Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl -w use strict; open(FILE, ">/tmp/blah") || die "Can Not Open File\n"; for ($a = 1; $a < 10; $a ++) { system ("ping -c 1 192.168.1.$a\n"); } close (FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not writing to file
by japhy (Canon) on Apr 04, 2001 at 20:53 UTC | |
|
(Ovid) Re: Not writing to file
by Ovid (Cardinal) on Apr 04, 2001 at 20:58 UTC | |
|
Re: Not writing to file
by Masem (Monsignor) on Apr 04, 2001 at 20:54 UTC | |
|
Re: Not writing to file
by KM (Priest) on Apr 04, 2001 at 20:57 UTC | |
|
Re: Not writing to file
by how do i know if the string is regular expression (Initiate) on Apr 04, 2001 at 23:00 UTC | |
by dws (Chancellor) on Apr 04, 2001 at 23:05 UTC | |
by how do i know if the string is regular expression (Initiate) on Apr 04, 2001 at 23:44 UTC |