Skip to content

Instantly share code, notes, and snippets.

@alexm
Created May 5, 2011 10:09
Show Gist options
  • Save alexm/956821 to your computer and use it in GitHub Desktop.
Save alexm/956821 to your computer and use it in GitHub Desktop.
Barcelona.pm T-shirt 2011 (with comments)
# Perl 6
use v6;
my @Barcelona = < Barcelona >;
my @PerlMongers = < Perl >;
# Define Camelia binary operator: »ö«
# https://github.com/perl6/mu/raw/master/misc/camelia.txt
# Takes a pair from the operand arrays and puts a heart in the middle
sub infix:<»ö«> {
$^me ~ ' ❤ ' ~ $^you
}
# Says "Barcelona ❤ Perl"
say @Barcelona »ö« @PerlMongers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment