in reply to Re^2: ** operator in perl
in thread ** operator in perl
I was taught to use a plus to disambiguate: print +( ... ) is that no longer accepted?That's still fine in Perl 5, but Perl 6 disambiguates it on the basis of the whitespace alone, which is what most newcomers seem to expect. Also, unary + actually means something in Perl 6, and wouldn't work anymore for the purpose of doing nothing. So the Perl 5 usage is deprecated in that sense. But only if you believe in Perl 6... :-)
Actually, what most people expect is for Perl to read their minds, but we've been having some trouble implementing that part, so we may put it off till Perl 7.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: ** operator in perl
by shmem (Chancellor) on Feb 09, 2009 at 01:25 UTC | |
Re^4: ** operator in perl
by deprecated (Priest) on Feb 03, 2009 at 23:32 UTC | |
| |
Re^4: ** operator in perl
by Lawliet (Curate) on Feb 04, 2009 at 00:08 UTC |
In Section
Seekers of Perl Wisdom