The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Class::Scalar - Scalar as an object

VERSION

$Id: Scalar.pm,v 0.1 2009/06/21 09:09:26 dankogai Exp dankogai $

SYNOPSIS

  use Class::Scalar;                    # use Class::Builtin;
  my $foo = Class::Scalar->new('perl'); # OO('perl');
  print $foo->length; # 4

EXPORT

None. But see Class::Builtin

METHODS

This section is under construction. For the time being, try

  print Class::Scalar->new(0)->methods->join("\n")

TODO

This section itself is to do :)

  • what should $s->m(qr/.../) return ? SCALAR ? ARRAY ?

  • more methods

SEE ALSO

Class::Builtin, Class::Array, Class::Hash

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.