Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Iterator-Simple CPAN distribution.

Report information
The Basics
Id: 113983
Status: new
Priority: 0/
Queue: Iterator-Simple

Owner: Nobody in particular
Requestors: slava.litvinov [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: enhancement: smart match support
Date: Mon, 25 Apr 2016 14:16:59 -0700
To: bug-Iterator-Simple [...]
From: Slava Litvinov <slava.litvinov [...]>
Download (untitled) / with headers
text/plain 376b
It would be extremely useful to support smart match operator. Basically the change is the Iterator/ to include use overload; use overload '~~' => \&Iterator::Simple::Iterator::contains; sub contains { my ( $self, $what ) = @_; while ( my $item = $self->next() ) { return 1 if $what ~~ $item; } return 0; }

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to