Thread Hash als Option missbrauchen (118 answers)
Opened by bloonix at 2005-12-19 02:24

bloonix
 2005-12-20 22:04
#61002 #61002
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=steffenw,20.12.2005, 12:54]
Code: (dl )
my $stats = Statistics(qw/ProcStats MemStats NetStats DiskStats DiskUsage/);
[/quote]

Das ist eine gute Idee. Nur was ist, wenn ich die Optionen doch irgendwann
mal auswerten möchte? Zum Beispiel ...

$stats = Statistics( Processes => root ); # zeige alle root-Prozesse

oder

$stats = Statistics( ProcStats => ProcCount ); # zeige nur die Anzahl aller Prozesse

Im Moment wäre deine Idee optimal, aber weiß nicht was die Zukunft
bringt, aber ich werde es mir durch den Kopf gehen lassen :)
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Hash als Option missbrauchen