How about this?
That's not exactly equivalent to your code, but all sorts of adjustments are possiblewhile ($mode eq 'running') { my $new = $backs[int(rand(@backs))]; system($command . ' --type=string -s '. $gconf_item . ' \'' . $new + . '\''); sleep($interval*60); }
After Compline,
Zaxo
In reply to Re: how to loop
by Zaxo
in thread how to loop
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |