Chas Owens wrote:
> 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.

The key word there is "word".  The => operator only works with "word"
characters (a-z, A-Z, 0-9 and _).



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

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


Reply via email to