++ed by:
Ricardo SIGNES

NAME

Unit::Bytes

SYNOPSIS

  Moose::Autobox->mixin_additional_role(SCALAR => 'Units::Bytes');

  print "5 kilobytes are " . 5->kilobytes . " bytes";
  print "2 megabytes are " . 2->megabytes . " bytes";
  print "1 gigabyte is "   . 1->gigabyte  . " bytes";
  print "2 terabyes are "  . 2->terabytes . " bytes";

DESCRIPTION

This is a Moose::Autobox port of the perl6 vmethods example.

AUTHOR

Stevan Little, <stevan@iinteractive.com>

ACKNOLEDGEMENTS

This code was ported from the version in the Pugs examples/vmethods/ directory. See that for original author information.




Hosting generously
sponsored by Bytemark