jump to navigation

Perl : Hash of Hashes Refernced by Hash Key September 27 2004

Age old problem of traversing a hash of hashes based on a key from a different hash.

#!perl

use strict;

my(%HASH_1, %HASH_2);

$HASH_1{’URL1′} = 1;
$HASH_1{’URL2′} = 1;
$HASH_1{’URL3′} = 1;

$HASH_2{’URL1′}{’URL2′}=1;
$HASH_2{’URL1′}{’URL3′}=1;
$HASH_2{’URL2′}{’URL3′}=1;
$HASH_2{’URL3′}{’URL1′}=1;

while(my($key, $value) = each %HASH_1) {
if($HASH_2{$key}) {
my $hash_ref_copy = $HASH_2{$key};
while(my($key2, $val2) = each %$hash_ref_copy) {
print qq{ $key :: $key2 :: $val2 n};
}
}
}

Reference : Abatko

Shave and a haircut… September 20 2004

My wife Blair has decided to help breast cancer by participating in the Mix 99.9 Shave to Save fund raiser.

The objective is to raise $2000 CAD towards cancer research and the Mix 99.9 crew will come and shave your head.

Good luck honey!

If anyone wants to help out, let me know and I’ll send over the details.

UPDATE: Deadline October 8th, 2004

What is wrong with sales people? September 17 2004

Just got off the phone with a sales guy. I’m looking to buy some CMS software.

Simple question: How Much?

The run around they give you and they want to talk to every senior executive under the sun. At the end of the day the answer to the simple question was “We’re mid market…. we could be in the 6 figures”

Does this really help? NO! Stop wasting my time.

Lorum Ipsum

Perhaps it is because I do not come from a design background that I had never heard of Lorum Ipsum before this week.

I actually ran into it on two seperate occasions in one week.

Incredibly useful for generating paragraphs of barf.

Gurus vs. Bloggers (Round 2) September 16 2004

Here is the follow up to the design battle….

Gurus vs. Bloggers (Round 2)

PS: I still suck!

« newer posts | older posts »