Ok so I have this line of code that I cant figure out and if someone could help me with it that would be great. I am making a geo-location perl script as part of my project.
Here is the line of code
$isps = $info->{'isp'};
if ($isps = "Time Warner Cable")
{
print "Isp found, go to $website for more information\n";
}
if ($isps = "Google") {
print "Isp found, go to $website for more information\n";
} else {
print "No ISP located! No way of Contact via this terminal!";
}
Ok so basically I am trying to make the if statement read the JSON code and make it print certain text if the specific name is listed. I am adding more ISPs to the file but just those two for example for now.
If anyone could help me with this line of code, because I seriously cant figure it out.