I'm having a small problem with a perl script. It's probably something very small that I'm overlooking, but I haven't been able to find anything that has helped.
I have a plain text file that contains some information from a few web pages. For instance:
Path-Name: http://blahblahblah.blahblah.htm
Content-Length: 2732
Last-Mtime: 1145848708
Document-Type: html*
<html>
<head>
<title>Blah Blah</title>
<style type="text/css">
::
::
</html>
At the top of all the html code is the url that the information is pulled from. What I'm trying to do is display the urls that are found in this text file. So I'm using the conditional statement:
if($line =~ /Path-Name:/i)
{
print $line;
}
What it returns is:
Path-Name:
However, there is no url printed. I know it can find it and the string is there, so why isn't it printing it.
Thank you again.