Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Created August 18, 2017 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexDaniel/bdba740bf8bacd44991bc133f760ae87 to your computer and use it in GitHub Desktop.
Save AlexDaniel/bdba740bf8bacd44991bc133f760ae87 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl6
use Email::Simple;
sub is-weird($a) { $a.NFC.Str !eq $a }
my $a = buggy-str();
say ‘Is weird: ’, is-weird($a);
dd $a;
say $a eq “: \n\r\n\r”;
Is weird: True
Str $a = ": \n\r\n\r"
False
unit class Email::Simple;
sub buggy-str is export { “: {‘’}\n\r” ~ “\n\r” }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment