in reply to use base 'Foo' or die!
I've asked myself that question too. OO-purist or not: why use qw// when you just want to quote one value? How many do print qw(Hello)? Not many, I'd guess. "Unnecessary" qw() seem to be most frequent where lists usually are passed, like array initializations, the vars pragma, import lists, etc, and there it's handy when you want to add something to the list. But as you say, most people do use it with the base pragma too, even though having a list of more than one element there would be the exception, not the rule. I can see a couple of possible explanations, in order of what I think is most likely:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use base 'Foo' or die!
by adrianh (Chancellor) on Feb 12, 2003 at 17:19 UTC | |
by ihb (Deacon) on Feb 12, 2003 at 18:53 UTC | |
by dragonchild (Archbishop) on Feb 12, 2003 at 20:34 UTC | |
by extremely (Priest) on Feb 12, 2003 at 23:01 UTC | |
by adrianh (Chancellor) on Feb 13, 2003 at 10:24 UTC |