diff options
author | Philippe Bricout <ph.bricout@free.fr> | 2015-04-01 15:13:59 +0200 |
---|---|---|
committer | Philippe Bricout <ph.bricout@free.fr> | 2015-04-01 15:13:59 +0200 |
commit | 4c46a456bd5e33aec2a3cab7b7c33a375d5a97ed (patch) | |
tree | d03bbbd649a7877191379bdada8cab70e1a278ef /perl6.html.markdown | |
parent | 5e79da614c98070cfbf908af1c7be9b6abf3b2ed (diff) |
Update perl6.html.markdown
($_.chars > 50) ~~ True : this is always True.
Diffstat (limited to 'perl6.html.markdown')
-rw-r--r-- | perl6.html.markdown | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl6.html.markdown b/perl6.html.markdown index f0ef6600..8404f9f8 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -253,7 +253,9 @@ given "foo bar" { when $_.chars > 50 { # smart matching anything with True (`$a ~~ True`) is True, # so you can also put "normal" conditionals. # This when is equivalent to this `if`: - # if ($_.chars > 50) ~~ True {...} + # if $_ ~~ ($_.chars > 50) {...} + # Which means: + # if $_.chars > 50 {...} say "Quite a long string !"; } default { # same as `when *` (using the Whatever Star) |