Skip to content

Instantly share code, notes, and snippets.

@kraih
Created May 27, 2012 12:05
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 kraih/2811354 to your computer and use it in GitHub Desktop.
Save kraih/2811354 to your computer and use it in GitHub Desktop.
package Test;
use Mojo::Base -base;
sub foo : lvalue { shift->{foo} }
package main;
use Mojo::Base -strict;
my $test = Test->new;
$test->foo = 'works!';
say $test->foo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment