Skip to content

Instantly share code, notes, and snippets.

@genehack
Created October 16, 2015 21:43
Show Gist options
  • Select an option

  • Save genehack/85efcba24d30a622d6c8 to your computer and use it in GitHub Desktop.

Select an option

Save genehack/85efcba24d30a622d6c8 to your computer and use it in GitHub Desktop.
#! /usr/bin/perl
package WTF;
use Moose;
has a => (
is => 'ro' ,
isa => 'Str' ,
default => sub { shift->b() . ' harder' },
);
has b => (
is => 'ro',
isa => 'Str' ,
required => 1 ,
);
package main;
use feature 'say';
my $wtf = WTF->new( b => 'fuck me' );
say $wtf->a;
% for i in `seq 1 10` ; do ./fu_moose.pl ; done
Use of uninitialized value in concatenation (.) or string at ./fu_moose.pl line 9.
harder
Use of uninitialized value in concatenation (.) or string at ./fu_moose.pl line 9.
harder
fuck me harder
fuck me harder
Use of uninitialized value in concatenation (.) or string at ./fu_moose.pl line 9.
harder
fuck me harder
Use of uninitialized value in concatenation (.) or string at ./fu_moose.pl line 9.
harder
fuck me harder
Use of uninitialized value in concatenation (.) or string at ./fu_moose.pl line 9.
harder
Use of uninitialized value in concatenation (.) or string at ./fu_moose.pl line 9.
harder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment