blazar has asked for the wisdom of the Perl Monks concerning the following question:
Putting it as briefly as possible:
C:\temp>perl -wMstrict -E "say scalar (my @a = 'aaa' =~ /./g)" 3 C:\temp>perl -wMstrict -E "say scalar (my @a = 'aaa' ~~ /./g)" 1
Documented? Why so, anyway?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [5.10] =~ vs ~~
by moritz (Cardinal) on Sep 01, 2008 at 09:41 UTC | |
by Arunbear (Prior) on Sep 01, 2008 at 10:06 UTC | |
by moritz (Cardinal) on Sep 01, 2008 at 10:10 UTC | |
by Arunbear (Prior) on Sep 01, 2008 at 10:47 UTC | |
by moritz (Cardinal) on Sep 01, 2008 at 11:00 UTC | |
by blazar (Canon) on Sep 01, 2008 at 12:33 UTC | |
by blazar (Canon) on Sep 01, 2008 at 12:26 UTC | |
|
Re: [5.10] =~ vs ~~
by ikegami (Patriarch) on Sep 01, 2008 at 12:36 UTC |