> Wiggins D Anconia wrote: > > > > > Tom Kinzer wrote: > > > > > > > > as a matter of style, i think always having them is nice for > > > > maintenance/readability. > > > > > > I may be wrong, but I think most Perl programmers would disagree. > > > > > > It may be nice for maintenance if your program is to be maintained > > > by a herd of Prolog programmers, but readability is certainly > > > reduced by redundant punctuation. > > > > > > while (<>) { print unless /^#/ } > > > > > > > Yeh, and the "that's two extra characters to type" police will get you > > too, not that I have been deputized into their gang. I don't like their > > mascot, $_, anyways.... > > Hi Wiggins. > > Not sure which way you're leaning here. I never saw you as anti the 'it' > variable $_? >
Mostly I am not leaning at all... I agree that () can be cluttering, and many would say that while (my $line = <>) { } or foreach my $element (@some_list) { } Is silly since Perl is going to provide me with $_ anyways, but 30 lines later, after $_ may or may not have been mangled by however many functions and regexes, etc. I like to have $line to hold onto, rather than relying on the $_ joker in a house of cards, but I have had to read *a lot* of *bad* Perl written by people who didn't know better. Essentially my jest goes back to Perl giving one ample amount of rope to string somebody up with, and while it is sometimes yourself, more often it is your poor maintainer coming behind you. Besides I like variables, so I at least like to show them the professional courtesy of calling them by name when I yell at them for doing something they were told rather than what I wanted. Of course grep/map not withstanding... So how does this relate, well often the same camp that complain about having to type an extra character here or there are also the camp that make *overly* judicious use of $_ and his cousins... Maybe I just don't get to write enough one liners.... http://danconia.org -- Boycott the Sugar Bowl! You couldn't pay me to watch that game. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>