[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] name-a-band



Yitzchak Scott-Thoennes wrote:
> You also get the useless use of qw() award.
> @ARGV = '/usr/dict/words';

When I write an assignment, I want both sides to look
like scalars or like lists.  Sure it doesn't matter
when @a = 'a', but it matters a lot in $a = 'a'
vs $a = ('a').  I want to be consistent.
Just like you *have* to account for the difference
between ($a) = @a and $a = @a, it's good practice
to follow the same pattern on the right... even if
you don't *have* to.  Thus @a = ('a') vs @a = 'a'. 
And I think we all agree that
  @a = qw( a b c d e f g );
is a lot prettier than
  @a = ( 'a', 'b', 'c', 'd', 'e', 'f', 'g' );

</no-fun>

-- 
John Porter

"There are people who have fun studying the C++ spec for
literally seconds on end, I'm sure..."    John Vlissides


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe