Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chocolateboy/autobox
- Owner: chocolateboy
- License: artistic-2.0
- Created: 2010-08-18T12:08:38.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T20:34:39.000Z (3 months ago)
- Last Synced: 2024-10-04T22:37:52.256Z (about 2 months ago)
- Topics: autobox, autoboxing, extension-methods, lexical, perl-module, perl-pragma, pragma, scope, scoped, xs
- Language: Perl
- Homepage: https://metacpan.org/release/autobox
- Size: 543 KB
- Stars: 9
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README
- Changelog: Changes
- License: LICENSE.md
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 installDEPENDENCIES
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.