
scalar::object - automagically turns scalar constants into objects

$Id: object.pm,v 0.2 2009/06/21 15:44:41 dankogai Exp $

{
use scalar::objects;
my $o = 42; # $o is a Class::Builtin::Scalar object
print 42->length # 2;
}
my $n = 1; # $n is an ordinary scalar
print $n->length # dies

None. But see Class::Builtin

This section itself is to do :)

Class::Builtin, Class::Builtin::Scalar

Dan Kogai, <dankogai at dan.co.jp>


Copyright 2009 Dan Kogai, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.