in reply to Re^2: Use of the m/.../g idiom in list context (formatting MAC addresses) (use of fat commas)
in thread Use of the m/.../g idiom in list context (formatting MAC addresses)
Yes, smart people know that fat arrow autoquotes the left argument. But why should you require your code to be maintained by smart people?use constant COMMA => ','; ... my $result = join COMMA => @list; # should be: my $result = join COMMA, @list;
Be kind to your maintenance programmer. Don't use fat arrow except when you want the quoting feature.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Use of the m/.../g idiom in list context (formatting MAC addresses) (use of fat commas)
by tye (Sage) on Jan 17, 2005 at 20:12 UTC |