jonixuse warnings; use strict; my $x = "aiutino aiutino argh! aiutino"; warn "Argh, one time" for $x =~ / \b aiutino \b /ix; warn "Argh, three times" for $x =~ / \b aiutino \b /gix;
In reply to Re: /g matches not really global in scalar context!
by jonix
in thread /g matches not really global in scalar context!
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |