Hi

Could anyone explain why the output of the hash isn't: 1 a
2 b
3 c
How can i make that the order remains the same in the hash??


Thx

@count = (1,'a',2,'b',3,'c');
print @count;                            #output:   1a2b3c
print "\n";

%c = @count;
foreach $abc (keys %c){
  print $abc.'   '.$c{$abc}."\n"    #output:   1    a
  ;                                          #              3    c
}                                             #              2   b

_________________________________________________________________
Geschenkideeën en e-cards voor Valentijn ! http://www.msn.be/valentijn


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to