Thread [Tk] -textvariable an subroutine binden (16 answers)
Opened by styx-cc at 2017-07-25 12:08

rosti
 2017-07-25 15:40
#187020 #187020
User since
2011-03-19
3492 Artikel
BenutzerIn
[Homepage]
user image
Hallo,


Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
# instanz erstellen
my $m = bless{counter => 99};

# gibt referenz zurück
sub counter{
    my $self = shift;
    \$self->{counter};
}

# dereferenzieren
print ${$m->counter};


MfG

View full thread [Tk] -textvariable an subroutine binden