Re: RE: Finding directories within a tree

2005-10-07 Thread jason_normandin
That worked perfectley. > > From: "Larsen, Errin M HMMA/IT" <[EMAIL PROTECTED]> > Date: 2005/10/07 Fri PM 02:03:29 EDT > To: > Subject: RE: Finding directories within a tree > > [EMAIL PROTECTED] wrote: > > Good Afternoon > > > > I am attempting to develop a script that will parse a directory

Finding directories within a tree

2005-10-07 Thread jason_normandin
Good Afternoon I am attempting to develop a script that will parse a directory listing and return only directory names that match a given expression. It would make sense to me to use File::Find to do this but based on the dir structure I am parsing, the amount of overhead to do this is enourmou

Data comparison algorythm

2005-08-08 Thread jason_normandin
Hello All I have a rather difficult problem I am trying to solve. I have two arrays with a series of request times and response times for some network communication (UDP-SNMP communications). The data is such that I cannot accurately state what response coincides with what request and there can

Re: Re: Grep uniqueness issue

2005-07-29 Thread jason_normandin
Thanks. Just so that I understand: push @pingErrorsName, $element if !grep $_ eq $element, @pingErrorsName; Is actually taking each value in @pingErrorsName and validating if it is equal to $element. > > From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> > Date: 2005/07/29 Fri AM 11:32:15 EDT > T

Re: Re: Grep uniqueness issue

2005-07-29 Thread jason_normandin
Unfortunately I cannot as this is a cross-platform implementation. I need to avoid using any OS dependant commands. > > From: Eric Walker <[EMAIL PROTECTED]> > Date: 2005/07/29 Fri AM 11:19:16 EDT > To: beginners@perl.org > CC: [EMAIL PROTECTED] > Subject: Re: Grep uniqueness issue > > can you

Grep uniqueness issue

2005-07-29 Thread jason_normandin
Hey Guys I am having an odd problem using grep to ensure an array only contains distinct entries. I have a list similar to the following in a file (short example of a much longer list) support01-FastEthernet1/0 support01-RH jnormandin-p370-1691-SH-Cpu-2 jnormandin-p370-1691-SH These entries m

Accessing Outlook mail via Mail::Outlook

2005-05-25 Thread jason_normandin
Greeting. I am trying to create a script that will search a user's outlook email and move any messages that mtahc a certain subject to a new folder. To accomplish this I found the Mail::Outlook module on CPAN that allows me to easily access the OLE Outlook calls via Win32::Ole. My problem is

Translate standard date/time format to EPOCH seconds

2005-05-02 Thread jason_normandin
Good morning All. I am looking for a way to translate date/timestamps in various formats to EPOCH seconds without using a module (cannot use a module in this situation other then the standard modules installed with Perl). I am going to create a subroutine and parse the date/timestamp passed int

Re: 'Bad index while coercing array into hash' error

2005-04-25 Thread jason_normandin
Hello List. Found the problem: foreach my $record (@{dataFileHash{$datafile}}) { Should have been: foreach my $record (@{$dataFileHash{$datafile}}) { Sorry ! I stared at this for like an hour and didn't notice the missing $ Can anyone tell me what the Argument "NH_DATA01" isn't numeric in

'Bad index while coercing array into hash' error

2005-04-25 Thread jason_normandin
Greetings I am getting the following error when running a script using an anonymous array of hashes: Bad index while coercing array into hash at ./nhsDiffSchema.pl line 240 Here is the code snipt that both assigns values to the array of hashes and the code which displays the values back (where

Re: DBI hashref with multiple db rows

2004-10-05 Thread jason_normandin
Steve You may want to think of this from a DB perspective. Is there a unique key associated with each of these lookups that could prevent duplicate rows being returned? If you are looking up info for a particular person, I would assume you would only want 1 returned and you would want a key wi

Getting return code from process launched from exec

2004-04-14 Thread jason_normandin
Hi All I need to obtain the return code of a process forked via exec. $? appears to always return 0 even though I know that the actual process had a non-zero return code. Is $? populated to 0 as the exec was sucessfull ? If so, how can I get the return code of the process within the exec call ?

Re: RE: Hash Help Needed !

2004-03-25 Thread jason_normandin
Got it. I missed your note on the whitespace. Thanks everyone !! > > From: "Charles K. Clarkson" <[EMAIL PROTECTED]> > Date: 2004/03/25 Thu PM 03:35:08 GMT > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > CC: <[EMAIL PROTECTED]> > Subject: RE: Hash Help Needed ! > > [EMAIL PROTECTED] <[EMAIL P

Hash Help Needed !

2004-03-25 Thread jason_normandin
Hey List. I have run into a situation that I am unclear on. I am making the following assignment during a loop: push @{$response_hash{$request_id}},{time => "$time",ip_addr => "$ip_address",oids => "%response_values"}; Where: response_values is a simple hash containing key,value pairs and $tim