Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jani on github.
  • I am frettled (https://keybase.io/frettled) on keybase.
  • I have a public key whose fingerprint is 5DEA 1355 5D57 B5C1 616F DE75 2353 E7FA 651C 7E36

To claim this, I am signing this object:

@jani
jani / Oslo-Perl6-Hackathon-2012-info.yml
Created February 3, 2012 13:04 — forked from sjn/Oslo-Perl6-Hackathon-2012-invitation.mkd
Oslo.pm #perl6 hackathon theme braindump
---
- Status: Preliminary plan. Subject to change!
- Dates (confirmed):
- 2012-04-20 (friday evening social)
- 2012-04-21 (saturday)
- 2012-04-22 (sunday)
- Venue (confirmed):
- Redpill Linpro classrooms
- Vitaminveien 1A
- 0485 Oslo
use v6;
enum Suit <spades hearts diamonds clubs>;
enum Rank (2, 3, 4, 5, 6, 7, 8, 9, 10,
'jack', 'queen', 'king', 'ace');
class Card {
has Suit $.suit;
has Rank $.rank;

Title: What Stops Me From Using Perl6 Today Author: Chris Prather Date: 2009-11-16 14:12

What Stops Me From Using Perl6 Today

I have to confess mst asked me to step forward and make a comment about the [Perl5][mst] & [Perl6][masak]. I suspect because I'm a prime example of a person who's deeply involved in what masak calls the Perl5 story. This is because I've been bound up tightly with the Moose community for a while, and I've recently founded a [company][tamarou] that is doing Modern Enlightened Perl development. My bread is buttered by Perl5.

Recently because of mst and masak sparking a conversation I have started taking a really close look at Perl6. One of the things that struck me was how polished and complete the core Perl6 language was, and the Rakudo implementation.

#!/usr/local/bin/perl6
my @data = (@*ARGS[0] ??
slurp(@*ARGS[0]) !!
$*IN.lines)>>.trim.split(/(\r\n|\n|\n\r)/)>>.split(/\s* ',' \s*/);
say @data.perl.subst("],", "],\n", :g);
@jani
jani / S09-data.pod.diff
Created August 11, 2009 14:44
S09 patch
--- Spec/S09-data.pod 2009-08-11 11:19:03.000000000 +0200
+++ Spec.20090811/S09-data.pod 2009-08-11 17:04:03.000000000 +0200
@@ -1198,6 +1198,11 @@
a key object's value within the hash except by deleting it and reinserting
it.
+The order of hash keys is implementation dependent and arbitrary.
+Unless C<%hash> is altered in any way, successive calls to C<.keys>,
+C<.kv>, C<.pairs>, C<.values>, or C<.iterator> will iterate over the
+elements in the same order.