A Code Monkey's Blog

Smart match ~~ in Perl 5.10 is the equivalence to 'in' in Python

Sometimes I really miss the keyword 'in' in Python which is very common operation in programming to check if a object is in a set. I'm very glad to see the smart match ~~ in Perl 5.10 provides the similar feature.