Eric Edwards wrote: > $Bill wrote: > When you post code, post a small complete failing snippet with any input > and output examples: > use strict; > use warnings; > use Data::Dumper; $Data::Dumper::Indent=1; $Data::Dumper::Sortkeys=1; > my @array = (Key1 => 'Value1', Key2 => 'Value2', Key3 => 'Value3', > Key4 => 'Value4'); > my %hash = @array;
^^^^^^^^^^^^^^^^^^^^ > print Data::Dumper->Dump([\%hash], [qw(\%hash)]); > > __END__ > > Result: > > $\%hash = { > 'Key1' => 'Value1', > 'Key2' => 'Value2', > 'Key3' => 'Value3', > 'Key4' => 'Value4' > }; > > Eric replied: > Thanks for the feed back, but that is not what Michael is trying to do. > The code snip he supplied was sufficient unto it self. > He was trying to: > %hash = @array; Note the line above with ^^^^^^^^^^^^^^^^^^ under it. Isn't that setting %hash to @array ? The code snippet was hardly sufficient if it doesn't compile or produce any output. Show me a complete code snippet that fails. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs