o2bwise has asked for the wisdom of the Perl Monks concerning the following question:
Question 1:#!/usr/bin/perl use strict; use Data::Dumper; use regression; open (TEST,">xxx.txt"); my %test = (); my @teams = ('packers','lions','bears','vikings'); my @data = (5,10,15,20); my $counter = 1; foreach my $team (@teams) { my $counter2 = 0; foreach my $data_value (@data) { $test{$team}{'raw_data'}{$counter} = $data_value; print TEST "$team: $counter - $test{$team}{'raw_data'}{$counte +r}\n"; $data[$counter2] = $data[$counter2] * 2; $counter2++; $counter++; } } close (TEST);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: difficulty with complicated (for me) hashes
by Tanktalus (Canon) on Dec 18, 2008 at 23:35 UTC | |
by o2bwise (Scribe) on Dec 19, 2008 at 03:12 UTC | |
|
Re: difficulty with complicated (for me) hashes
by pat_mc (Pilgrim) on Dec 18, 2008 at 23:46 UTC | |
by o2bwise (Scribe) on Dec 19, 2008 at 03:14 UTC | |
|
Re: difficulty with complicated (for me) hashes
by MarkovChain (Sexton) on Dec 19, 2008 at 01:03 UTC | |
by o2bwise (Scribe) on Dec 19, 2008 at 03:18 UTC | |
|
Re: difficulty with complicated (for me) hashes
by u671296 (Sexton) on Dec 18, 2008 at 23:42 UTC | |
by u671296 (Sexton) on Dec 18, 2008 at 23:44 UTC | |
by o2bwise (Scribe) on Dec 19, 2008 at 03:13 UTC |