Anonymous array of hashes question

2005-08-04 Thread Jason Normandin
Hello I have a situation where I build an anonymous array of hashes for some requests and responses found in a file (there can be multiple requests and responses). It works very nicely and tracks all of the responses and requests from an ip to another IP address. Here is my code: my $time=$1 if

Re: convert UNIX timestamp

2003-10-04 Thread Jason Normandin
Hi Scott, All How can I reverse this ? ( Convert date/time format to UNIX timestamp ) Thanks! Jason. Hall, Scott wrote: Mickalo, perldoc -f localtime perldoc -f gmtime perl -e 'print scalar localtime (1064616515), "\n"' Fri Sep 26 18:48:35 2003 Scott -Original Message- From: M

Multi-demensional, multi-key hash : Help :(

2003-11-12 Thread Jason Normandin
Hey Group I am new to hashes, so please be kind : ) I am trying to create a hash of hash's with the following characteristics: 1. The outer hash has a unique key called $ELEMENT 2. The value of the outer hash is a key to the innner hash called $DATE 3. The value of the inner hash is a value call

Network Sniffer Module

2004-02-22 Thread Jason Normandin
Hi List. I am looking for a module that will allow me to perform the same function as the Solaris snoop command via Perl. I have searched CPAN, but was unable to find such a module. I would rather not use the snoop command itself, hence my module query. Anyone know if there is one out t

Count the number of lines in a file without actually iterating through the file

2004-02-25 Thread Jason Normandin
Hi List. Is there a way to determine the number of lines in a file without actually iterating through the file and incrementing a file? I found the following on perlmonks.org, it works great but this is command line syntax : perl -lpe '}{*_=*.}{' file How could I integrate this into a

RE: Getting return code from process launched from exec

2004-04-14 Thread Jason Normandin
D'oh ! Not sure how I missed that. Thanks! That did the trick. -Jason -Original Message- From: Steve Grazzini [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 12:57 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Getting return code from process launched from exec