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
use v6; | |
print $("reHTona tsuj".flip.tclc, Mu.^methods.grep(/p.**2l$/).tclc, "hacker\n"); |
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
my role IO::FileTestable { } | |
my class IO::Handle does IO::FileTestable { } | |
class IO is IO::Handle { ; } | |
my class IO::Path is Cool does IO::FileTestable { | |
#also does IO::FileTestable; | |
} |
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 Foo { | |
method baz ($a, $b?) { | |
if ! defined $b || $b eq '' { | |
$b = $*CWD; | |
} | |
say $a, $b; | |
} | |
} |
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
=head2 IO::Path | |
class IO::Path is Cool does IO::FileTest { } | |
Holds a path of a file or directory. The path is generally divided | |
into three parts, the I<volume>, I<directory> and I<base name>. | |
On Windows, the volume is a drive letter like C<C:>, or a UNC network volume | |
like C<\\share\>. On UNIX-based systems, the volume part is empty. |
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
my %bar; | |
sub foo { | |
1; | |
} | |
%bar<z> = 'quux'; |
NewerOlder