On 6/15/05, Tassilo von Parseval <[EMAIL PROTECTED]> wrote: > so it's not that the current behaviour should be such a surprise to an > experienced user. For me it's mostly an aesthetic question really. Do we > want this couple: > > print $x +$y; # means: $x + $y > print { $x } +$y; > > or rather this one: > > print $x +$y; # means: print { $x } +$y; > print $x + $y; > > The second one is visually less offending. Futhermore, there is no > style-guide I know of that suggests using a space before a binary > operator but not after it. Perl should make such ugliness as hard to > employ as possible.
I'm with Schwern. The first one is the only logical scenario. print $x +$y; # should mean $x + $y always print $x $y; # should mean print { $x } $y since the latter is legal and the recommended way to write to a lexical filehandle making the former a synonym for it seriously violates the principle of least surprise. Also taking this approach the docs become correct again i think. yves -- perl -Mre=debug -e "/just|another|perl|hacker/"