RE: heredoc issure

2007-07-19 Thread christopher . l . hood
I think that Rob was onto something, here is my 2 cents. The print line should be like this: print EOF and not print EOF like you have. I think maybe that what is happening is that the error that is being printed is saying that it cannot find spaceEOF before end of file.

Using Config files and variables.

2005-07-31 Thread christopher . l . hood
Ok , all file contents and code are below, this is a sort of complicated issue. I have a config file with customer static information , a couple of modules, and a script. The basis of the problem is that in the config file there is an sql query that has some variables in it. The script calls one

perldoc formatting

2005-07-10 Thread christopher . l . hood
Ok basically I have written a module, and it works, I have updated the documentation in the module, and it works for the most part. What I am seeing is that when I use a single quote that the line looks like this when you use perldoc.

DBD::Oracle issue

2005-06-01 Thread christopher . l . hood
ALL, Can someone help out with this error: DBD::Oracle::st execute failed: ORA-03106: fatal two-task communication protocol error (DBD ERROR: error possibly near * indicator at char 23 in 'select table_name from *all_tables') [for Statement select table_name from all_tables] at

RE: DBD::Oracle issue

2005-06-01 Thread christopher . l . hood
for your assistance. Chris Hood  -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 01, 2005 8:02 AM To: Christopher L. Hood Cc: mysql@lists.mysql.com; beginners@perl.org Subject: Re: DBD::Oracle issue Hi, I'll try even if this is not a neither oracle

DBD::Oracle problems

2005-05-31 Thread christopher . l . hood
All, I am getting the following error while trying to use DBD::Oracle: DBD::Oracle::st execute failed: ORA-00900: invalid SQL statement (DBD ERROR: OCIStmtExecute) [for Statement describe ALL_USERS] at ./oracleTest.pl line 69. I have tested the connection manually with sqlplus, and all

RE: :Oracle problems

2005-05-31 Thread christopher . l . hood
:55 PM To: Christopher L. Hood; beginners@perl.org Subject: RE: :Oracle problems [EMAIL PROTECTED] wrote: All, I am getting the following error while trying to use DBD::Oracle: DBD::Oracle::st execute failed: ORA-00900: invalid SQL statement (DBD ERROR: OCIStmtExecute) [for Statement

Compare to multiple numbers

2005-05-16 Thread christopher . l . hood
Why doesn't this work to check the STDIN until it is one of the numbers 1 2 3 4 5 ?? I have tried multiple variations of this with different brackets ie. [ ] , and ( ) . until($type_number == 1 .. 5 ){ print Enter the number that corresponds to the type of offense you would like a report

substituting variables in external file.

2005-05-11 Thread christopher . l . hood
I have a need to have 3 different templates of email text outside of my actual script, what I want to know is can I use variables in the templates then open the file for reading and substitute the variables in the text with some data saved in matching variables in my script? Is there a module

rows returned and while statement

2005-04-26 Thread christopher . l . hood
Ok I have an issue where I run an sql query against a database, and want to evaluate whether or not an entry occurs for a given user, if NOT then this run will be the first entry. Ok the problem occurs in the while statement, everything works as expected if the user already has an entry in the DB,

Reading multi line input from user

2005-04-25 Thread christopher . l . hood
I wish to read input from a user that has multiple lines with carriage returns from stdin but not actually stop reading until a single # on a line by itself. Is there a module / package / function that will aid in this? I would like to do something like below: Until(STDIN = #) {

RE: Find a specific record based on time

2005-04-20 Thread christopher . l . hood
- From: Jay Savage [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 10:57 AM To: Christopher L. Hood; beginners perl Subject: Re: Find a specific record based on time On 4/19/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, basically I have a list of start times, stop times, usernames

Find a specific record based on time

2005-04-19 Thread christopher . l . hood
Ok, basically I have a list of start times, stop times, usernames, and ip's in a database, I currently have code in place that will take in a date and ip address and return a list of people that had that IP address, with the time that they acquired the ip and the time that they released the ip.

DBI object version 1.32 does not match $DBI::VERSION 1.48

2005-04-06 Thread christopher . l . hood
I believe that I may have asked this question before and cannot find the answer that I had gotten, So I will ask again. I have upgraded DBI to version 1.48 and I am now having issues and errors with my scripts. The error that I am getting is : DBI object version 1.32 does not match

RE: DBI object version 1.32 does not match $DBI::VERSION 1.48

2005-04-06 Thread christopher . l . hood
is installed? Chris Hood  -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 8:42 AM To: Christopher L. Hood Cc: Perl Beginners List Subject: Re: DBI object version 1.32 does not match $DBI::VERSION 1.48 On Wed, 6 Apr 2005 [EMAIL PROTECTED] wrote

RE: DBI object version 1.32 does not match $DBI::VERSION 1.48

2005-04-06 Thread christopher . l . hood
: Wednesday, April 06, 2005 8:42 AM To: Christopher L. Hood Cc: Perl Beginners List Subject: Re: DBI object version 1.32 does not match $DBI::VERSION 1.48 On Wed, 6 Apr 2005 [EMAIL PROTECTED] wrote: I have upgraded DBI to version 1.48 and I am now having issues and errors with my scripts. The error

DBD::Oracle installation Woes

2004-09-21 Thread christopher . l . hood
Ok here is the deal, our admin is trying to install DBD::Oracle for me to access one of our affiliates databases. The oracle instant basic client and sqlplus has been installed as well as GetOpt::Long. The installations all went well except for DBD::Oracle, it fails to install, I am pretty sure

RE: delete all lines in a file save it come out

2004-08-31 Thread christopher . l . hood
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 6:50 AM To: [EMAIL PROTECTED] Subject: delete all lines in a file save it come out Hi , I have a problem in deleting all the lines in a file and saving it . Actually my log file keep

RE: How do i run shell command

2004-08-31 Thread christopher . l . hood
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 12:10 AM To: [EMAIL PROTECTED] Subject: Re: How do i run shell command It works for me . Thanks Sudhakar Gajjala Chris Devers [EMAIL PROTECTED] on 08/30/2004 10:47:55 PM Please

shift question

2004-08-30 Thread christopher . l . hood
OK here comes the newbie question. I found this in a template for creating subroutines, this is the base that is created when you use the template to create the subroutine. So now the newbie part, why would you place my $par1 = shift; in the subroutine template, and what does it do?? Basically

RE: shift question

2004-08-30 Thread christopher . l . hood
please notify the sender immediately and delete the message. -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 2:41 PM To: Christopher L. Hood; [EMAIL PROTECTED] Subject: RE: shift question [EMAIL PROTECTED] wrote: OK here comes the newbie

RE: POD on new module to make sure it looks right before uploading to CPAN

2004-08-26 Thread christopher . l . hood
- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 5:41 PM To: Christopher L. Hood Cc: [EMAIL PROTECTED] Subject: Re: POD on new module to make sure it looks right before uploading to CPAN [EMAIL PROTECTED] wrote: Well I don't know if it is possible, however the POD

find out who was online at a given time

2004-07-20 Thread christopher . l . hood
Ok, this may or may not be a tricky one I will try and be succinct in my statement. I have a database (mysql 4.0) with radius log entries for each day, we receive emails about Acceptable Use Abuses and must figure out exactly who was online with a certain IP address when the abuse occurred. As

find out who was online at a given time

2004-07-16 Thread christopher . l . hood
Ok, this may or may not be a tricky one I will try and be succinct in my statement. I have a database (mysql 4.0) with radius log entries for each day, we receive emails about Acceptable Use Abuses and must figure out exactly who was online with a certain IP address when the abuse occurred. As

Global and Local variables issue

2004-07-13 Thread christopher . l . hood
Ok what I have is 3 variables assigned in the global block using my then when I try to use those variables later in a subroutine I get an error. The error is below: Error during compilation of /usr/local/rt3/local/html/cgi-bin/aupsearch.cgi: Variable $ip will not stay shared at

RE: pattern matching binary or garbage characters in string

2004-07-01 Thread christopher . l . hood
Thanks to all that helped with this problem, and thanks especially to RandyS as he hit the nail on the head. Here is the final working code block below. while (LOGFILE) { chop $_ ; if( (/JUNIPER/) || (/REDBACK/) ){ print DSL $_ . \n; } else {

RE: printing 10 scalers/elements

2004-07-01 Thread christopher . l . hood
Ok well that might be what you are looking for, but also check out format, link below: http://www-cgi.cs.cmu.edu/Web/People/rgs/pl-format.html or perldoc perlform It should be an easy matter to format your output to however many columns you want. Chris Hood Chris Hood Investigator

pattern matching binary or garbage characters in string

2004-06-30 Thread christopher . l . hood
I have a log file with thousands of lines, some of those lines come in with garbage / binary data in them. The lines with that happening are junk and of no use to me I want to pattern match for the junk and simply do nothing with that line, all other lines get divided into 2 different output