Skip to content

Instantly share code, notes, and snippets.

@Altreus
Created October 5, 2021 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Altreus/66b06566c10ade954cb42427ea37575a to your computer and use it in GitHub Desktop.
Save Altreus/66b06566c10ade954cb42427ea37575a to your computer and use it in GitHub Desktop.
breaking perl
$ 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