On 2/27/07, Neal Clark <[EMAIL PROTECTED]> wrote: snip
sorry about saying you had the wrong syntax earlier, i thought it was. i never knew you could do hashes with the comma operator. neat. i don't think its very clear syntactically but if it works it works :-)
snip
In Perl 5 the only difference between the '=>' and ',' operators is that the '=>' operator treats the word on the left like a string. The '=>' is preferred when working with hashes because it provides a visual cue that you are not dealing with a normal list. In Perl 6 it will actually create a pair object, but since Perl 6 is a long way away still you don't really need to know that. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/