Cheat-Meta

 view release on metacpan or  search on metacpan

lib/Cheat/Sheet/Util.pod  view on Meta::CPAN

        # Restrict %hash to a set of keys; can delete but can't add other keys
        \%hash = lock_keys     ( %hash );           # current keys %hash
        \%hash = lock_keys     ( %hash, @keys );    # @keys; subset of keys @hash
        \%hash = lock_keys_plus( %hash, @keys );    #        superset
        \%hash = unlock_keys   ( %hash );           # remove restrictions
        # Cannot alter value of $key but can delete the k/v pair
        \%hash = lock_value    ( %hash, $key );
        \%hash = unlock_value  ( %hash, $key );
        # Lock the whole %hash; can't add, delete, or change value at all
        \%hash = lock_hash              ( %hash );
        \%hash = unlock_hash            ( %hash );
        \%hash = lock_hash_recurse      ( %hash );  # HoHoH... only
        \%hash = unlock_hash_recurse    ( %hash );  #   ditto
        # Other functions...
        $bool  = hash_unlocked ( %hash );       # true if %hash is unlocked
        @keys  = legal_keys    ( %hash );       # list of keys allowed
        @keys  = hidden_keys   ( %hash );       # see docs; experimental feature
        \%hash = all_keys( %hash, @keys, @hidden );       # experimental feature
        # Just like Daddy but take hashref arguments
        \%hash = lock_ref_keys          ( \%hash );
        \%hash = lock_ref_keys          ( \%hash, @keys );
        \%hash = lock_ref_keys_plus     ( \%hash, @keys );
        \%hash = unlock_ref_keys        ( \%hash );
        \%hash = lock_ref_value         ( \%hash, $key );
        \%hash = unlock_ref_value       ( \%hash, $key );
        \%hash = lock_hashref           ( \%hash );
        \%hash = unlock_hashref         ( \%hash );
        \%hash = lock_hashref_recurse   ( \%hash );
        \%hash = unlock_hashref_recurse ( \%hash );
        $bool  = hash_ref_unlocked      ( \%hash );
        @keys  = legal_ref_keys         ( \%hash );
        @keys  = hidden_ref_keys        ( \%hash );
    ## Hash::Util

=head1 SEE ALSO

=over

=item * L<Cheat::Meta>

=item * L<perlcheat>

=back

=head1 FUNCTIONS/METHODS

None. This module contains only POD. Don't try to load it. 

=head1 INTERFACE 

Open the cheat (the *.perl file) in your editor. 
Copy out whatever you like. 

If you look at the *.pod file, you'll see POD verbatim paragraphs.
Your choice. 

You can also get the same content in your pager with: 

    perldoc Cheat::Sheet::Util

=head1 BUGS AND LIMITATIONS

No cheat sheet will teach you anything. It's only a reminder. You B<must> 
consult each module's own full documentation I<at least> before using it. 
I hope. 

This module does not contain magic to squirt code into your module. 
Copy and paste. 

No boilerplate code will work right away. Edit it to your needs. 

=head1 THANKS

=over

=item *

To about 8500 authors who have uploaded about 85,000 modules to the CPAN. 

=back

=head1 AUTHOR

Xiong Changnian  C<< <xiong@cpan.org> >>

=head1 LICENSE

Copyright (C) 2010 Xiong Changnian C<< <xiong@cpan.org> >>

This library and its contents are released under Artistic License 2.0:

L<http://www.opensource.org/licenses/artistic-license-2.0.php>

=cut



( run in 0.858 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )