Perl's lack of 'in' keyword
Andy Armstrong
andy at hexten.net
Tue Oct 7 18:00:02 BST 2008
On 7 Oct 2008, at 17:50, Iain Barnett wrote:
>> Why wait for Perl 6? Perl 5 has had it for almost a year now. It's
>> spelled ~~ though.
>
> Is there some reason why -- was picked over 'in' ? It just seems to
> pander to those who think perl reads like line noise.
It's ~~ not -- and it's not just in - it's a general purpose adaptive
match whose semantics are determined by the things being matched.
And (meta) who cares about people who think that Perl reads like line
noise. Should the language bend to the preferences of those who
dislike it?
More on smart match:
http://perltraining.com.au/tips/2008-04-18.html
--
Andy Armstrong, Hexten
More information about the london.pm
mailing list