in reply to Re^3: [5.10] =~ vs ~~
in thread [5.10] =~ vs ~~

hmm, re behaviour in list context, I'm getting different results from you:
use strict; use warnings; use Data::Dumper; use feature qw/say/; my @a1 = 'aaa' ~~ /./g; my @a2 = 'aaa' =~ /./g; say Data::Dumper->Dump([\@a1, \@a2], [qw/smart_match re_match/]);
gives me
$smart_match = [ 1 ]; $re_match = [ 'a', 'a', 'a' ];
with v5.10.0 built for i686-linux

Replies are listed 'Best First'.
Re^5: [5.10] =~ vs ~~
by moritz (Cardinal) on Sep 01, 2008 at 11:00 UTC
    I get the same result as you did (with blead), so I wonder what I messed up while testing.

    Anyway, I'll send a mail to p5p and ask for clarification.