Thread Bestimmte Anzahl von Zeichen mit Regexp filtern (38 answers)
Opened by bloonix at 2006-01-12 14:05

bloonix
 2006-01-13 00:19
#61821 #61821
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=Strat,12.01.2006, 17:32]
Code: (dl )
1
2
3
4
if (open (LOAD, '/proc/loadavg')) {
   $load = substr(<LOAD>, 0, 5);
   close (LOAD);
} # if
[/quote]
falls du mal mehr aus dem proc-Filesystem ziehen möchtest und ein
RedHat, Debian, Mandrake oder SuSE nutzt, könnte ich dir ein Modul von
CPAN empfehlen :p

Linux-Statistics\n\n

<!--EDIT|opi|1137104425-->
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 Bestimmte Anzahl von Zeichen mit Regexp filtern