in reply to given-when construct unexpected behavior with arrays

warnings kicks out some warning messages:
use warnings; ... With grep: Element a is not there With given-when: Argument "a" isn't numeric in smart match at z line 23. Element a is there With grep: Element ab is not there With given-when: Argument "ab" isn't numeric in smart match at z line 23. Element ab is there

Replies are listed 'Best First'.
Re^2: given-when construct unexpected bahavior wit arrays
by mantager (Sexton) on Jun 07, 2012 at 17:39 UTC

    Thank you for pointing this out, I thought use v5.14 would enforce strict and warnings, but I found out it's not so.

      From use, only strict is used, not warnings:
      if the specified Perl version is greater than or equal to 5.11.0, strictures are enabled lexically as with use strict .