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>
<dankogai at dan.co.jp>
autobox, overload
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.
To install Class::Builtin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Builtin
CPAN shell
perl -MCPAN -e shell install Class::Builtin
For more information on module installation, please visit the detailed CPAN module installation guide.