Thread eq Operator überlagern
(24 answers)
Opened by rosti at 2024-08-22 14:48
Zumindest haben wir schonmal Links und Rechts:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 use strict; use warnings; use overload bool => sub{ my $self = shift; $self->{name}; }; use overload "==" => sub{ my $lval = shift; my $rval = shift; print "Links: $lval, Rechts: $rval\n"; }; my $m = bless{name => 'Erwin'}; $m == "Franze"; |