Created
October 5, 2021 15:14
-
-
Save Altreus/66b06566c10ade954cb42427ea37575a to your computer and use it in GitHub Desktop.
breaking perl
This file contains 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
$ perl | |
package An::Object; | |
use Moose; | |
has prop => ( is => 'ro' ); | |
package An; | |
sub Object { 'FakePackage' } | |
package main; | |
print An::Object->new( prop => 'prop' )->prop; | |
Can't locate object method "new" via package "FakePackage" (perhaps you forgot to load "FakePackage"?) at - line 9. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment