Schrift
[thread]4913[/thread]

Tk und Subs (Seite 2)

Leser: 1


<< |< 1 2 >| >> 16 Einträge, 2 Seiten
ptk
 2005-04-06 12:38
#43293 #43293
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Ich benutze gerne Advertise und Subwidget, um einzelne Widgets nach aussen sichtbar zu machen:
Code: (dl )
1
2
3
4
5
my $l = $top->Label->pack;
$top->Advertise(MeinLabel => $l);
...
# spaeter
$top->Subwidget("MeinLabel")->configure(...)
pKai
 2005-04-06 14:25
#43294 #43294
User since
2005-02-18
357 Artikel
BenutzerIn
[default_avatar]
[quote=Crian,06.April.2005, 01:31]Mit dem Modul (was übrigens ein Core-Modul ist) kannst Du die Schlüssel eines Hashes "abschließen".[/quote]
Aber nicht in 5.6, was F. anscheinend verwendet.
Quote
NAME
Hash::Util - A selection of general-utility hash subroutines

...

DESCRIPTION
"Hash::Util" contains special functions for manipulating hashes that
don't really warrant a keyword.

By default "Hash::Util" does not export anything.

Restricted hashes
5.8.0 introduces the ability to restrict a hash to a certain set of
keys. No keys outside of this set can be added. It also introduces the
ability to lock an individual key so it cannot be deleted and the value
cannot be changed.
...
I sense a soul in search of answers.
Crian
 2005-04-07 19:16
#43295 #43295
User since
2003-08-04
5873 Artikel
ModeratorIn
[Homepage]
user image
[quote=ptk,06.04.2005, 10:38]Ich benutze gerne Advertise und Subwidget, um einzelne Widgets nach aussen sichtbar zu machen[/quote]
Schick, das kannte ich gar nicht.
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite
Crian
 2005-04-07 19:17
#43296 #43296
User since
2003-08-04
5873 Artikel
ModeratorIn
[Homepage]
user image
[quote=pKai,06.04.2005, 12:25][quote=Crian,06.April.2005, 01:31]Mit dem Modul (was übrigens ein Core-Modul ist) kannst Du die Schlüssel eines Hashes "abschließen".[/quote]
Aber nicht in 5.6, was F. anscheinend verwendet.
Quote
NAME
Hash::Util - A selection of general-utility hash subroutines

...

DESCRIPTION
"Hash::Util" contains special functions for manipulating hashes that
don't really warrant a keyword.

By default "Hash::Util" does not export anything.

Restricted hashes
5.8.0 introduces the ability to restrict a hash to a certain set of
keys. No keys outside of this set can be added. It also introduces the
ability to lock an individual key so it cannot be deleted and the value
cannot be changed.
...
[/quote]
Was dennn "nicht"? Da steht doch genau was ich gesagt habe?!
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;

use strict; use warnings; Link zu meiner Perlseite
Dubu
 2005-04-07 19:52
#43297 #43297
User since
2003-08-04
2145 Artikel
ModeratorIn + EditorIn

user image
Und da steht, dass es erst ab 5.8 geht. :)
pKai
 2005-04-08 01:49
#43298 #43298
User since
2005-02-18
357 Artikel
BenutzerIn
[default_avatar]
Ich hab die Einschränkung ("seit 5.8") mal in den oben erwähnten WiKi-Artikel geschrieben.
I sense a soul in search of answers.
<< |< 1 2 >| >> 16 Einträge, 2 Seiten



View all threads created 2005-04-05 13:14.