Marcos Rebelo wrote:
> try
>
> @temparry = `"$lcf_tools\\pslist EXCEL"`;
> foreach $temp (@temparray){
> next if $temp !~ /EXCEL/;
> ($name,$pid,$pri,$thd,$hnd,$Mem,$usertime,$kerneltime,$elapsedtime) =
> split(" ",$temp);
> ...
> }
Better would be
next if $temp !~ /^EXCEL/;
which is 'doesn't start with' instead of 'doesn't contain'.
> for avoiding errors, use 'strict' module
Absolutely. Yes. (applause). :)
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]