Last active
December 16, 2015 20:59
-
-
Save sergot/5496535 to your computer and use it in GitHub Desktop.
My solutions. masak/workshop
This file contains hidden or 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
TODO |
This file contains hidden or 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; | |
say "Just another Perl hacker"; |
This file contains hidden or 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; | |
# Program 1 | |
print (.split('')[2] or '') for lines(); | |
# Program 2 | |
my $s; $s += $_ for lines(); say $s; | |
# Program 3 | |
say $_~"\n" for lines(); | |
# Program 4 | |
my $n; say "{++$n}.$_" for lines(); | |
# Program 5 | |
for lines() { last if m:i/^end$/; next if m:i/^start$/; .say; } |
This file contains hidden or 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
TODO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment