I've changed the subject of this thread.  In the future, please post
messages with a relevant subject line.


On Fri, Aug 17, 2001 at 12:53:22PM -0600, Tyler Cruickshank wrote:
> %browns = ();
> 
> for($i=1; $i<=3; $i++){
> 
>    $hour = "hr$i";
>    $root = 'data.';
>    $name = "$root$hour";
> 
>    $browns{$name} = [ @data ];
>    }
> 
> 
> print "   $browns{$name}[1]   \n";
> print " $name = @{ $browns{'data.hr3'} }\n"; 
> print " $name = @{ $browns{$name} }\n";

What did you expect this to output?  What did it output?

When I ran the code it outputs the data correctly (given that @data = qw(foo
bar blah)):

           bar   
     data.hr3 = foo bar blah
     data.hr3 = foo bar blah


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to