Dan Kogai

NAME

scalar::object - automagically turns scalar constants into objects

VERSION

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

SYNOPSIS

  {
     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

EXPORT

None. But see Class::Builtin

TODO

This section itself is to do :)

SEE ALSO

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

AUTHOR

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

ACKNOWLEDGEMENTS

autobox, overload

COPYRIGHT & LICENSE

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.