Dan, does sub() changes the value of $status? Also, do sub() and sub2()
break the loop?
Daniel Falkenberg wrote:
> Hey all,
>
> Please don't stree to much over this one but, is there an easier way of
> writing this?
>
> while(1){
> if ($status == 1) {
> #Do this sub...
> sub();
> elsif ($status == 1) {
> #Do this other sub...
> sub2();
> } else {
> #Continue while loop...
> }
> }
>
> Can I make it smaller. I want to know this to improve my Perl skills.
>
> Regards,
>
> Dan
--
Ahmed
[EMAIL PROTECTED] | http://arbornet.org/~ahmed
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]