in reply to While loop
do { print "Enter Yes or No \n"; chomp($input = <>); if ($input eq 'yes') { print "Yes entered for system.\n"; } elsif($input eq 'no') { print "No entered for system.\n"; } } while ($input =~ /^yes$/ or $input =~ /^no$/);
$"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+) +-.*)$/;$_=["ps -e -o pid | "," $2 | "," -v "," "];`@$_`?{print"+ $1"} +:{print"- $1"}&&`rm $1`;print"\n";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: While loop
by Mr. Muskrat (Canon) on May 14, 2002 at 19:22 UTC | |
|
Re: Re: While loop
by Anonymous Monk on May 14, 2002 at 18:48 UTC |