Created
October 16, 2015 21:43
-
-
Save genehack/85efcba24d30a622d6c8 to your computer and use it in GitHub Desktop.
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
| #! /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; |
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
| % 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