R. Joseph Newton wrote:
> Mark VanMiddlesworth wrote:
>
>> this is a script that systematically pings every host on the network,
>> and writes the output to the screen. If the -n arg is specified, it
>> will also write to a disk. What's wrong with the syntax, especially
>> line 12?
>
> Why am I supposed to count to line 12, instead of you marking it?
>
>> #!/usr/bin/env perl
>>
>> $x = 1;
>> $b = 0;
>>          for ($x = 1; $x < 256; $x++) {
>>                  $a = `ping -q -c 1  192.168.1.$b`;
>>                  $b += 1;
>>                  print "192.168.1.$b   ";
>>                  print $a;
>>                  $usage="ping.pl [-n]"
>>                  if ($arg = "-n") {$e = 0}   # Line 12
>
> You are asking, in the line above, whether your assignment of "-n" to
> the scalar $arg succeeded.  Answer: true, always.
>
> Joseph





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to