This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Log::Dispatch { | |
enum Level <DEBUG INFO NOTICE WARNING ERROR CRITICAL ALERT EMERGENCY>; | |
class Output { | |
has Level $.level = DEBUG; | |
method format(Level $level, DateTime $ts, @args) { | |
$ts ~ ' [' ~ $level.lc ~ '] ' ~ @args>>.gist.join(' ') | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl6 | |
$*IN.slurp.&talk; | |
sub talk(Str $_) { | |
my @ös = |('Ö','ö') xx *; | |
for .lines { | |
for .comb.produce(&[~]) { | |
print "\r", @ös.shift, ' ', $_; |
OlderNewer