On Jun 15, Rafael Garcia-Suarez said:

No. Perl's parser could be smarter (notably for the C<f $x +$y> syntax
error I quoted earlier), but I really want something like:

        print $fh -$value;

to do what I meant, whithout forcing me to put ugly {} in there. OK,
maybe my brain was irradiated due to a too long exposure to the
internals of perl's parser, but the above print statement is perfectly
clear to me, and probably exists in a lot of real code.

Well, you could do

  print $fh (-$value);

which uses not-so-ugly-() and in a location that probably makes more sense to the casual reader.

--
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart

Reply via email to