I am using the following code to read in a web site access log file and translate IP addresses to their domain names:
1 open(LOG, "$logfile");
2 open(TEMP, ">$tempfile");
3 while(my $line = <LOG>)
4 {
5 if($line =~ /^(\d{2,}\.\d{2,}\.\d{2,}\.\d{2,})/)
6 {
7 my $ip_address...
Hello,
I am a Perl programmer and have only used JavaScript minimally. I've been researching how to do simple search and replaces in JavaScript but can't find any good reference material. Basically, I want to know what the equivalent of this Perl statement would look like in JavaScript...
Hello,
I am trying to log into a website and am getting a pop-up box with the following message:
"Information you exchange on this site cannot be viewed or changed by others. However, there is a problem with the sit's security certificate.
* The security certificate is from a trusted...
I have a question about the readdir() function in Perl. I am using readdir() to read out the contents of a specified directory:
opendir (PICKUPDIR, $dir); # $dir is the directory path
while ($contents=readdir(PICKUPDIR))
{
print <<END;
$contents<br>
END
}
Here is my question: Is...
I'm looking for an efficient way to sort the following in perl:
/this/is/the/file/path/June/n06302004_2004063009.html
/this/is/the/file/path/July/n07012004_2004070108.html
/this/is/the/file/path/July/n07012004_2004070103.html
/this/is/the/file/path/July/n07012004_2004070109.html
I need to sort...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.