NAME
Filter::Object::Simple - Binding the built-in functions with Array,Hash.
SYNOPSIS
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);
DESCRIPTION
This is a source filter , which provides a simple way to manipulate data of Hash and Array with built-in functions.
EXPORT
None by default.
SEE ALSO
Filter::Simple Filter::Simple::Compile
AUTHOR
Cornelius, <cornelius@cpan.org>
COPYRIGHT AND LICENSE
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.