need some help using strict??

2007-04-27 Thread FamiLink Admin
I am trying to verify a credit card number format with the following: (below) but I am getting errors like: Global symbol "%r" requires explicit package name at ./modmember.cgi line 681. Global symbol "%r" requires explicit package name at ./modmember.cgi line 683. Global symbol "%r" requires

Re: using perl ot connect to a database

2007-03-15 Thread FamiLink Admin
It looks old! 2.1021 Thanks for your help. Now I will go to work on updating this. Thanks for your help! Ryan - Original Message - From: "Chas Owens" <[EMAIL PROTECTED]> To: "FamiLink Admin" <[EMAIL PROTECTED]> Cc: "Perl Beginners List"

Re: using perl ot connect to a database

2007-03-15 Thread FamiLink Admin
eed the old_password set to on to use this script? I am using redhat and everything is updated to the latest rpm's. The script works with the old_password set to on. Ryan - Original Message - From: "Chas Owens" <[EMAIL PROTECTED]> To: "FamiLink Admin"

using perl ot connect to a database

2007-03-14 Thread FamiLink Admin
I am trying to connect to a database using a small script but get this error: failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' perl #!/usr/bin/perl use strict; use warnings; use DBI; $ENV{MYSQL_UNIX_PORT} = "/var/lib/mysql/mysql.sock"; my $dsn = "DBI:mysq

editing a large file through the web

2007-03-07 Thread FamiLink Admin
Hello all, I am trying to edit a file using html and perl. I got it working but I wanted to know if this i the best way to do the job. I have a problem with the first line being blank. Everytime I submit I get a new blank line at the top of my file: (some HTML removed) #!/usr/bin/perl

need help cleaning up a search

2007-01-26 Thread FamiLink Admin
Hello all, I am using the following to pull a search query from a google search: ( my $search1 ) = $url =~ /q=(.*)/; my $search = (split '&', $search1)[0]; If the search looks at this string: http://www.google.com/search?hl=en&q=+erika+michelle+barre&btnG=Google+Search Then my search = +erika

Re: printing to a file if line is not there

2007-01-12 Thread FamiLink Admin
+liveshow) GET 143438 Ryan - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: Thursday, January 11, 2007 3:55 PM Subject: Re: printing to a file if line is not there FamiLink Admin wrote: Hello all. Hello, I am tryi

printing to a file if line is not there

2007-01-11 Thread FamiLink Admin
Hello all. I am trying to read a log file then look for a website and score. If that website has a score >100, take it and add it to a "Check me" list. 1. I don't want to "recheck" so I have a list of checked sites that I want to verify with. 2. I don't want duplicates added to the "check m

Re: a little help...

2005-09-29 Thread FamiLink Admin
-- Original Message - From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: "FamiLink Admin" <[EMAIL PROTECTED]> Cc: Sent: Thursday, September 29, 2005 4:58 PM Subject: RE: a little help... FamiLink Admin wrote: That works

Re: a little help...

2005-09-29 Thread FamiLink Admin
if less than or equal get next key print $output1 Dumper(\%{$MyIpAddrInfo}); print $output2 "$ip/32\n"; $matched = $matches; $matches = 0; $ip2 = $ip; } } close $output; close $ou

Re: a little help...

2005-09-29 Thread FamiLink Admin
r, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: "FamiLink Admin" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, September 28, 2005 5:53 PM Subject: RE: a little help... FamiLink Admin wrote: I am only concerned about the IP. The rest is just to

Re: a little help...

2005-09-28 Thread FamiLink Admin
;[EMAIL PROTECTED]> To: "FamiLink Admin" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, September 28, 2005 5:18 PM Subject: RE: a little help... FamiLink Admin wrote: Jeff , Thanks for all your help! This is what I have now (below and this time the whole thing): I think I ha

Re: a little help...

2005-09-28 Thread FamiLink Admin
){ print $output "$matches, $ip, $hour, $time, $category, $url\n"; print $output2 "$ip/32\n"; $matched = $matches; $matches = 0; } } close $output; close $output2; return($matche

a little help...

2005-09-28 Thread FamiLink Admin
Hello all. Please let me know if this is a good place for my questions. I am trying to read a log file and get a list of how many times an IP address get blocked each hour by category PO. An example line in the log with a block is: - [2005-09-28 10:05:03 -7:00] 127.0.0.1 71.32.59.2