Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chocolateboy/autobox

Call methods on native types
https://github.com/chocolateboy/autobox

autobox autoboxing extension-methods lexical perl-module perl-pragma pragma scope scoped xs

Last synced: about 1 month ago
JSON representation

Call methods on native types

Awesome Lists containing this project

README

        

autobox version 3.0.2
====================

The autobox pragma allows methods to be called on integers, floats, strings, arrays, hashes, and code references in exactly the same manner as blessed references.

Autoboxing is transparent: values are not blessed into their (user-defined) implementation class (unless the method elects to bestow such a blessing) - they simply use its methods as though they are.

autobox is lexically scoped, and bindings for an outer scope can be overridden or countermanded in a nested scope.

See the POD for more details.

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

This module requires these other modules and libraries:

Scope::Guard

COPYRIGHT AND LICENCE

Copyright (c) 2003-2024 by chocolateboy.

This is free software; you can redistribute it and/or modify it under the
terms of the Artistic License 2.0.