Hydrogen::Curry::Scalar - easily curry functions from Hydrogen::Scalar
This documentation is for Hydrogen::Curry::Scalar 0.020000, which is based on Sub::HandlesVia::HandlerLibrary::Scalar 0.046.
Each function expects a scalar as its only argument and returns a coderef.
curry_make_getter( $scalar )
Curry the first argument of Hydrogen::Scalar::make_getter.
Hydrogen::Scalar::make_getter
curry_make_setter( $scalar )
Curry the first argument of Hydrogen::Scalar::make_setter.
Hydrogen::Scalar::make_setter
No functions are exported by this module by default. To import them all (this is usually a bad idea), use:
use Hydrogen::Curry::Scalar -all;
To import a particular function, use:
use Hydrogen::Curry::Scalar 'curry_make_getter';
To rename functions:
use Hydrogen::Curry::Scalar 'curry_make_getter' => { -as => 'myfunc' };
On Perl 5.37.2+ (or if Lexical::Sub is installed) you can import lexically:
use Hydrogen::Curry::Scalar -lexical, 'curry_make_getter';
See Exporter::Tiny::Manual::Importing for more hints on importing.
Please report any bugs to http://github.com/tobyink/p5-hydrogen/issues.
Hydrogen, Hydrogen::Scalar, Hydrogen::Topic::Scalar, Sub::HandlesVia::HandlerLibrary::Scalar.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2022-2023 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Hydrogen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hydrogen
CPAN shell
perl -MCPAN -e shell install Hydrogen
For more information on module installation, please visit the detailed CPAN module installation guide.