Re: a little help...

2005-09-29 Thread FamiLink Admin
Thanks for all the help! I'm almost there... Should: foreach $MyIpAddr (sort keys %{MyIpAddrInfo}) { next if ( $MyIpAddrInfo->{MyIpAddr} <= $blocklimit ); # if less than or equal get next key print $output2 "$ip/32\n"; be: foreach $MyIpAddr (sort keys %{$MyIpAddr

RE: a little help...

2005-09-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
FamiLink Admin wrote: > That works! Now I see data! > > $VAR1 = { > '70.117.26.250' => '1' > }; > $VAR1 = { > '70.117.26.250' => '1', > '71.32.59.249' => '1' > }; > $VAR1 = { > '70.117.26.250' => '1', > '71.32.59.249' => '2' >

Re: a little help...

2005-09-29 Thread FamiLink Admin
That works! Now I see data! $VAR1 = { '70.117.26.250' => '1' }; $VAR1 = { '70.117.26.250' => '1', '71.32.59.249' => '1' }; $VAR1 = { '70.117.26.250' => '1', '71.32.59.249' => '2' }; $VAR1 = { '70.117.26.250' => '1',

Re: generating a wordlist from an array of arrays

2005-09-29 Thread Gerard Robin
On Thu, Sep 29, 2005 at 07:26:51PM +0200 mark berger wrote: > hey list. i stuck with gererating a wordlist from a changing > multidimensional array. each entry in the array contains a list with the > possible values. > > fe: > > @wordlayout = ((a, b),# possible values for 1st char

RE: a little help...

2005-09-29 Thread Timothy Johnson
"my $MyIpAddrInfo = \%MIAI;" makes $MyIpAddrInfo a reference to the %MIAI hash. That is why you can't print it directly. If you want to treat $MyIpAddrInfo like the hash it refers to, you have to dereference it by prefacing it with the '%' (see example below). The brackets are usually optional,

RE: a little help...

2005-09-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
FamiLink Admin wrote: > David, > Thank you for your help! I am trying to get this to work. Can you > tell me what my $MyIpAddrInfo = \%MIAI; does? I am getting This is making $MyIpAddInfo a refeence to %MIAI so to access the data you use the -> as the connector vs $MIAI{}. > > HASH(0x

Re: generating a wordlist from an array of arrays

2005-09-29 Thread Jeff 'japhy' Pinyan
On Sep 29, mark berger said: hey list. i stuck with gererating a wordlist from a changing multidimensional array. each entry in the array contains a list with the possible values. You want a "cartesian cross product". And there's a module out there that does just that: Set::CrossProduct.

Re: a little help...

2005-09-29 Thread FamiLink Admin
David, Thank you for your help! I am trying to get this to work. Can you tell me what my $MyIpAddrInfo = \%MIAI; does? I am getting HASH(0x8133528) for $MyIpAddrInfo if I print it out after the: $MyIpAddrInfo->{$ip}++; Ryan Lamberton - Original Message - From: "Wagner, David

Re: compiling Storable in order to use Proc::ProcessTable

2005-09-29 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: As I am attempting to compile this module I am getting many errors on an "this module" as in Storable or Proc::ProcessTable ?? perl -MCPAN -e 'install Storable;' # your perl doesn't already have Storable??? perl -MCPAN -e 'install Proc::ProcessTable;' Are you ins

question on returning value

2005-09-29 Thread Helen Chen
Hi, I am calling a perl script within matlab, and am trying to return the name of the file, which the perl script created to matlab. Is there a simple way to do it? Thanks Helen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

compiling Storable in order to use Proc::ProcessTable

2005-09-29 Thread DBSMITH
As I am attempting to compile this module I am getting many errors on an HPUX 11.11 64 bit machine. Any help please ? (See attached file: log) thank you, Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams log Description: Binary data -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

RE: generating a wordlist from an array of arrays

2005-09-29 Thread Hall, Scott
Mark, I like to use glob for such tasks. perldoc -f glob perldoc File::Glob bash-2.05b$ perl -le 'print for glob ("{a,b}{c}{d,e,f}")' acd ace acf bcd bce bcf Regards, Scott PS: I apologize for the top post. -Original Message- From: mark berger [mailto:[EMAIL PROTECTED] Sent: Thursd

generating a wordlist from an array of arrays

2005-09-29 Thread mark berger
hey list. i stuck with gererating a wordlist from a changing multidimensional array. each entry in the array contains a list with the possible values. fe: @wordlayout = ((a, b), # possible values for 1st char (c), # possible values for 2nd char (d, e

RE: Date in perl

2005-09-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Jay Savage wrote: > On 8/27/05, Gomez, Juan <[EMAIL PROTECTED]> wrote: >> >> Hi all >> >> >> I have a problem need to work with date >> >> I have a input like these : 20050829 and I need to change it to >> something like this : Aug 29 2005 >> >> but it still eludes me how to do that >> >>

Re: Date in perl

2005-09-29 Thread Jay Savage
On 8/27/05, Gomez, Juan <[EMAIL PROTECTED]> wrote: > > Hi all > > > I have a problem need to work with date > > I have a input like these : 20050829 and I need to change it to something > like this : Aug 29 2005 > > but it still eludes me how to do that > > can anyone help me please? > > > > > >

RE: Date in perl

2005-09-29 Thread Bakken, Luke
Tom Allison wrote: > Gomez, Juan wrote: >> I have a problem need to work with date >> >> I have a input like these : 20050829 and I need to change it to >> something like this : Aug 29 2005 >> >> but it still eludes me how to do that >> >> can anyone help me please? >> > I was going to say "

Re: Current directory?

2005-09-29 Thread Chris Devers
On Thu, 29 Sep 2005 [EMAIL PROTECTED] wrote: > I want to get the current environment variable (current directory), and I > type like this: > > $currentpath = %ENV; Why do you expect this to do anything useful? You're assigning the contents of a hash into a single scalar. That will almost never

Re: Date in perl

2005-09-29 Thread Tom Allison
Gomez, Juan wrote: Hi all I have a problem need to work with date I have a input like these : 20050829 and I need to change it to something like this : Aug 29 2005 but it still eludes me how to do that can anyone help me please? thanks Armando I was going to say "use

Re: DBI fetch

2005-09-29 Thread Tom Allison
Peter Scott wrote: On Sat, 27 Aug 2005 14:07:09 +0300, Octavian Rasnita wrote: What do you think, if the most important is the speed, which method is recommended to get the results of a DBI query? fetchrow_arrayref or fetchrow_array (I guess that fetchrow_hashref has the lowest speed). Tha

Re: Current directory?

2005-09-29 Thread Gustav Wiberg
Hi there! Thanx! I'll try that! :-) /G - Original Message - From: "Jeff Peng" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Thursday, September 29, 2005 10:27 AM Subject: Re: Current directory? #!/usr/bin/perl use strict; use Cwd; print getcwd,"\n"; #get the curren

Re: Current directory?

2005-09-29 Thread Jeff Peng
#!/usr/bin/perl use strict; use Cwd; print getcwd,"\n"; #get the current path print $ENV{PATH}; #get the path from environment variable 2005/9/29, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi there! > > I want to get the current environment variable (current directory), and I > type l

Re: Current directory?

2005-09-29 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > Hi there! Hello, > I want to get the current environment variable (current directory), and I > type like this: > > $currentpath = %ENV; > > and I get something like 37/64 > instead of maybe usr/username/test > > How do I get current directory? perldoc Cwd John --

Current directory?

2005-09-29 Thread gustav
Hi there! I want to get the current environment variable (current directory), and I type like this: $currentpath = %ENV; and I get something like 37/64 instead of maybe usr/username/test How do I get current directory? /G -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command