> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/perl6-rosettacode/programming_tasks/e/empty_string.md).

# Empty string

```perl
my $s = '';
say 'String is empty' unless $s;
say 'String is not empty' if $s;
```

Unlike in Perl 5, only empty strings test as false - the string "0" tests as true now.
