> > my %fruit_color = ( apple  => "red"
> >                   , banana => "yellow"
> >                   ) ;
> 
> Sure, you can use it, you can skip it, whichever works better 
> for you. 
> (I find this style ... erm ... strange, but that's your decision.)


Thanks for your reply.  Could you clarify whether by "style" you meant
omitting the last comma or the use of white space to align the comma under
the parentheses?  If it is the later, I initially found it strange, but I
appreciated how easy it was to see that a comma was in place and how
comments might fit:

my %fruit_color = ( apple                    => "this is too long and with a
narrow monitor the comment at the end might be hard to see"
                  , banana                   => "yellow"
                  , durian_that_smelly_fruit => "short value but long key"
                  ) ;

my %fruit_color = ( apple        => "red"     # comment: could change to
golden
                  , banana       => "yellow"
                  ) ;

I may not have a hold of many useful conventions of perl code style, so
perhaps these are not advantages.  However, if including the last comma is
really more conventional (useful), then I can easily adopt that with little
effort.

Kind regards,

Kevin  


Kevin Viel, PhD
Post-doctoral fellow
Department of Genetics
Southwest Foundation for Biomedical Research
San Antonio, TX 78227  


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


Reply via email to