in reply to Re^2: /g matches not really global in scalar context!
in thread /g matches not really global in scalar context!
so it is depending on scalar vs. list context what you will get.use warnings; use strict; my $x = "aiutino aiutino argh! aiutino"; my @matches = $x =~ / \b aiutino \b /gix; print "$_\n" for @matches;
|
|---|