We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7881a68 commit 3393d0aCopy full SHA for 3393d0a
doc/Language/5to6-nutshell.pod
@@ -1176,6 +1176,17 @@ system paths.
1176
1177
=head1 Misc.
1178
1179
+=head2 C<'0'> is True
1180
+
1181
+Unlike Perl 5, a string containing nothing but zero ('0') is C<True>. As Perl 6
1182
+has types in core, that makes more sense. This also means the common pattern:
1183
1184
+ ... if defined $x and length $x; # or just length() in modern perls
1185
1186
+In Perl 6 becomes a simple
1187
1188
+ ... if $x;
1189
1190
=head2 C<dump>
1191
1192
Gone.
0 commit comments