dk has asked for the wisdom of the Perl Monks concerning the following question:
$my_object_of_class_A =~ $my_object_of_class_B
or
$my_object_of_class_A =~ qclassB/$string/
where
sub qclassB { My::Class::B->new(@_) }
and something like
use overload '=~' => \&match_class_a_to_class_b;
any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: overload =~ operator
by diotalevi (Canon) on Sep 27, 2006 at 13:04 UTC | |
|
Re: overload =~ operator
by madbombX (Hermit) on Sep 27, 2006 at 16:21 UTC | |
|
Re: overload =~ operator
by ambrus (Abbot) on Sep 28, 2006 at 12:17 UTC | |
|
Re: overload =~ operator
by chromatic (Archbishop) on Sep 27, 2006 at 21:34 UTC | |
by dk (Chaplain) on Sep 28, 2006 at 07:49 UTC | |
|
Re: overload =~ operator
by MonkE (Hermit) on Sep 27, 2006 at 12:58 UTC | |
by dk (Chaplain) on Sep 27, 2006 at 13:09 UTC | |
|
Re: overload =~ operator
by demerphq (Chancellor) on Oct 11, 2006 at 23:31 UTC |