in this case would $num++ also work
In reply to Re: Re: Re: while loops by Glyndwr in thread while loops by root