On Tue, 2005-12-20 at 23:42 -0500, Uri Guttman wrote:
>   FL> my @commands = ( '/bin/netstat -ape | /usr/bin/wc -l',
>   FL>                  '/usr/bin/lsof | wc -l',
>   FL>                  '/bin/ps ax -L | wc -l' );
> 
>   FL> my @triggers = qw( 0 0 0);
> 
> since @triggers must be the same length as @commands then use that fact:
> 
>       my @triggers = ('0') x @triggers ;

I believe Uri meant:

  my @triggers = ('0') x @commands;

But I like his hash solution better anyway.


 -- Jeremy




 
_______________________________________________
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to