[Koha-bugs] [Bug 12151] remove remaining uses of the Perl smartmatch operator

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 6 22:43:21 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12151

--- Comment #2 from Chris Cormack <chris at bigballofwax.co.nz> ---
(In reply to Chris Cormack from comment #1)
> unless ( $data ~~ @used_datas ) {
> 
> Should be the same as 
> 
> unless ( grep ( $_ eq $data) @used_datas ) {
> 
> (I think, just noting it down for when I get the chance to try it)

It should be 
unless ( grep { $_ eq $data } @used_datas ) {

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list