diff options
author | ven <vendethiel@hotmail.fr> | 2015-04-01 15:39:32 +0200 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2015-04-01 15:39:32 +0200 |
commit | 218de8c34d5efafbfe5aa9b4ca3a7d94ca28c65b (patch) | |
tree | d03bbbd649a7877191379bdada8cab70e1a278ef /perl6.html.markdown | |
parent | 5e79da614c98070cfbf908af1c7be9b6abf3b2ed (diff) | |
parent | 4c46a456bd5e33aec2a3cab7b7c33a375d5a97ed (diff) |
Merge pull request #1031 from brxfork/patch-1
Update perl6.html.markdown // when and smartmatch
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) |