Thread eq Operator überlagern
(24 answers)
Opened by rosti at 2024-08-22 14:48 Quote Das mag sein. Aber darum ging es mir nicht. Sondern ums Verständnis. MFG Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 use strict; use warnings; use overload "==" => sub{ my $lv = shift; # blessed my $rv = shift; # plain text $$lv eq $rv; }; my $name = do{ my $s = "Fix"; bless \$s; }; print $name == "Fax"; Last edited: 2024-08-27 11:59:44 +0200 (CEST) |