TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
I have the following code:
But, at the end, I'm not getting any output. My guess is I'm not setting my hash table correctly. I've tried several things and I just can't seem to get it to work. Any help would be greatly appreciated.for ( my $i = 0; $i < scalar(@builds); $i++ ) { my ($str, $date, $time) = split(' ', `/msg/spgear/tools/bin/cset +ool fabx describe --milestone V${builds[$i]} | grep firstReportTime | + head -1`); $time{$builds[$i]} => { 'start_date' => $date, 'start_time' => $time, 'group' => 'integration' }; if ( $i != 0 ) { $time{$previous} => { 'end_date' => $date, 'end_time' => $time }; } $previous = $builds[$i]; } print "$_ $_->{'start_date'} <br> \n" for (sort keys %time);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting a hash element to a anoymous hash
by kvale (Monsignor) on May 18, 2004 at 21:03 UTC | |
|
Re: Setting a hash element to a anoymous hash
by CountZero (Bishop) on May 18, 2004 at 21:08 UTC | |
|
Re: Setting a hash element to a anoymous hash
by Belgarion (Chaplain) on May 18, 2004 at 21:00 UTC |