I
Ilias Lazaridis
perl [http://search.cpan.org/~nwclark/perl-5.8.8/lib/overload.pm
overload] provides functionality for operators:
{{{
#!perl
use overload
'+' => \&myadd,
'-' => \&mysub;
# etc
...
}}}
is there a similar module to overload the classes of build in types
(like array), something like:
{{{
#!perl
use typeoverload
'@' => 'My::Array',
'%' => 'My::Hash';
# etc
...
}}}
-
(this question was already discussed within another topic. Just
posting a own thread to be sure the question gets the visibility on
it's own)
..
overload] provides functionality for operators:
{{{
#!perl
use overload
'+' => \&myadd,
'-' => \&mysub;
# etc
...
}}}
is there a similar module to overload the classes of build in types
(like array), something like:
{{{
#!perl
use typeoverload
'@' => 'My::Array',
'%' => 'My::Hash';
# etc
...
}}}
-
(this question was already discussed within another topic. Just
posting a own thread to be sure the question gets the visibility on
it's own)
..