I'm still not sure which OS you are using. You write that you are 'using Window as OS' and then mention RH Linux, which is also an OS. I'm going to guess your actually going to be running this on the RH Linux. You should be able to tweak this a little to get it to run from the command prompt. Once that works, we can work on getting it to run as a CGI. Vic's approach will run the fping, but, it will not give you back the output from fping. Rather, it will only return the exit status of fping, 0 or 1. To catch the output from fping, you will need to open a pipe to it. I don't see any reason this would not run on a Win OS or RH.
#!/usr/local/bin/perl
# create a list of the IP addresses to ping.
@ips = ('123.258.35.36','IP2','IP3');
# open an output file to record the results
open(OPF,">someFileName"

or die "Failed to open someFileName, $!\n";
# foreach ip in the list, run fping.
foreach $ip (@ips)
{
print OPF "$ip - \n";
# open a pipe (child process to each fping
open(PIPE,"fping $ip |"

or die "Failed to open PIPE to $cmd, $!\n";
while(<PIPE>) { print OPF "$_"; }
close PIPE;
}
close OPF;
HTH
keep the rudder amid ship and beware the odd typo