Skip to content

Instantly share code, notes, and snippets.

View dugword's full-sized avatar
🍄

Douglas L. Jenkins dugword

🍄
View GitHub Profile
@dugword
dugword / no_port_80.pl6
Created January 1, 2017 03:49
The port is a lie
#!/usr/bin/env perl6
use v6;
say "This is a test script";
my $listen = IO::Socket::INET.new(
:listen,
:localhost('localhost'),
# :localport(80),
@dugword
dugword / class_test_two.pl6
Created December 29, 2016 22:01
multi method new in Perl 6 Class Raw
#!/usr/bin/env perl6
say "Testing classes";
my class Foo {
has $.bar;
has $.baz;
multi method new (:$bar!, :$baz!) {
return self.bless(:$bar, :$baz);
@dugword
dugword / class_test.pl6
Last active December 29, 2016 21:53
multi method new in Perl 6 Class
#!/usr/bin/env perl6
say "Testing classes";
my class Foo {
has $.bar;
has $.baz;
multi method new {
my $bar = 'foo';