Thread Hash als Option missbrauchen
(118 answers)
Opened by bloonix at 2005-12-19 02:24
[quote=steffenw,20.12.2005, 12:54]
Code: (dl
)
my $stats = Statistics(qw/ProcStats MemStats NetStats DiskStats DiskUsage/); 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. |