Patrick Dupre wrote:
On Fri, 4 Sep 2009, Noah Garrett Wallach wrote:
Hi there,
I am having some trouble understanding hash of hashes here. I want
to find all the keys for %policy{'policy_statement'}
for my $line (@lines) {
for my $key ( keys %policy{'policy_statement'} ) {
Ch
On Fri, 4 Sep 2009, Noah Garrett Wallach wrote:
Hi there,
I am having some trouble understanding hash of hashes here. I want to find
all the keys for %policy{'policy_statement'}
for my $line (@lines) {
for my $key ( keys %policy{'policy_statement'} ) {
Check if $keys is correc
At 11:02 AM -0700 9/4/09, Noah Garrett Wallach wrote:
Hi there,
I am having some trouble understanding hash of hashes here. I want
to find all the keys for %policy{'policy_statement'}
for my $line (@lines) {
for my $key ( keys %policy{'policy_statement'} ) {
%policy is a hash
Hi there,
I am having some trouble understanding hash of hashes here. I want to
find all the keys for %policy{'policy_statement'}
for my $line (@lines) {
for my $key ( keys %policy{'policy_statement'} ) {
if ($line =~
/set\sprotocols\sbgp\sgroup\s(\S+)\s(import|exp
Jason Normandin wrote:
> Hello
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 ad
On Friday 05 August 2005 01:37, Jason Normandin wrote:
[..]
>
> if ($protocol =~ /PING REQUEST/) {
> push @{$pingRequests{$destination}}, {
> time => $time,
> sequenceNumber=>$sequenceNumber
> };
> }
> elsif ($protocol =~ /PING RESPONSE/) {
> push @{$pi
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
sorry for the spam - my question has been answered
Hotmail was filtering the discussion list.
C
1. What is the difference between Line #1 and Line #2?
2. Why is the Line #2 declaration incorrect?
use strict;
my %option;
$option {'q'} = new CGI;
#Line 1-
$option{'Mon'} = 'Monday
1. What is the difference between Line #1 and Line #2?
2. Why is the Line #2 declaration incorrect?
use strict;
my %option;
$option {'q'} = new CGI;
#Line 1-
$option{'Mon'} = 'Monday';
#Line 2 -
$option->{'Tue'} = 'Tuesday';
print $option{'q'} -> header(),
$
Ciprian Morar wrote:
>
> 1. What is the difference between Line #1 and Line #2?
> 2. Why is the Line #2 declaration incorrect?
>
> use strict;
>
> my %option;
> $option {'q'} = new CGI;
>
> #Line 1-
> $option{'Mon'} = 'Monday';
>
> #Line 2 -
> $option->{
1. What is the difference between Line #1 and Line #2?
2. Why is the Line #2 declaration incorrect?
use strict;
my %option;
$option {'q'} = new CGI;
#Line 1-
$option{'Mon'} = 'Monday';
#Line 2 -
$option->{'Tue'} = 'Tuesday';
print $option{'q'} -> header(),
$
On Wed, 27 Nov 2002, Ben Crane wrote:
> Cheers,
>
> I was going to think about using a hash for a text
> file that contains information from a
> file::find...there are thousands and thousands of
> files I want to x-check and update it the modified
> date differs...at the moment, arrays work fine
Cheers,
I was going to think about using a hash for a text
file that contains information from a
file::find...there are thousands and thousands of
files I want to x-check and update it the modified
date differs...at the moment, arrays work fine, but I
was hoping a hash would mean a slightly quick
On Wed, 27 Nov 2002, Ben Crane wrote:
> Hi all,
>
> One quick Q about hashes:
>
> they contain a key and data?
> e.g: %stuff=(A => 'one',
> B => 'two');
>
> where A and B are keys to data one and two...but what
> happens if you have a massive text file wher you had
> one key, but 2
From: Ben Crane <[EMAIL PROTECTED]>
> Hi all,
>
> One quick Q about hashes:
>
> they contain a key and data?
> e.g: %stuff=(A => 'one',
> B => 'two');
>
> where A and B are keys to data one and two...but what
> happens if you have a massive text file wher you had
> one key, but 20 o
Hi all,
One quick Q about hashes:
they contain a key and data?
e.g: %stuff=(A => 'one',
B => 'two');
where A and B are keys to data one and two...but what
happens if you have a massive text file wher you had
one key, but 20 or 30 columns of data?
do you do this:
%stuff=(A => 'one',
Hi all,
One quick Q about hashes:
they contain a key and data?
e.g: %stuff=(A => 'one',
B => 'two');
where A and B are keys to data one and two...but what
happens if you have a massive text file wher you had
one key, but 20 or 30 columns of data?
do you do this:
%stuff=(A => 'one',
17 matches
Mail list logo