| Filter-Object-Simple documentation | view source | Contained in the Filter-Object-Simple distribution. |
Filter::Object::Simple - Binding the built-in functions with Array,Hash.
use Filter::Object::Simple;
my %hash = (
'abc' => 123,
'cba' => 456,
'foo' => 'bar',
);
my @array = (1,2,3,4,5);
%hash.exists( 'abc' );
%hash.defined( 'cba' ) ;
%hash.delete( 'abc' ) ;
@keys = %hash.keys;
@values = %hash.values;
@keys = %hash.keys();
@values = %hash.values();
my @r_array = @array.reverse() ;
@array.push(10) ;
my $value = @array.pop() ;
@array.unshift(10) ;
@array.grep({
!/1/
});
@array.map({
$_++;
});
@array.splice(3);
This is a source filter , which provides a simple way to manipulate data of Hash and Array with built-in functions.
None by default.
Filter::Simple Filter::Simple::Compile
Cornelius, <cornelius@cpan.org>
Copyright (C) 2007 by Cornelius
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
| Filter-Object-Simple documentation | view source | Contained in the Filter-Object-Simple distribution. |