GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GraphQL::Role::HashMappable(3) User Contributed Perl Documentation GraphQL::Role::HashMappable(3)

GraphQL::Role::HashMappable - GraphQL object role

  with qw(GraphQL::Role::HashMappable);

  # or runtime
  Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::HashMappable));

Provides method for mapping code over a hash-ref.

Given a hash-ref, returns a modified copy of the data. Returns undef if given that. Parameters:
$item
Hash-ref.
$source
Hash-ref of the source data for this hash. Will be used only for its keys.
$code
Code-ref.

Each value will be the original value returned by the given code-ref, which is called with $keyname, $value. Will call the code for all given keys, but not copy over any values not existing in original item.

If code throws an exception, the message will have added to it information about which data element caused it.

2021-07-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.