a) This has the look of homework.
b) The second while loop is not hung, it is trying to read from standard input. The magic <> operator consumes @ARGV, you see.
In reply to Re: while loop hanging
by no_slogan
in thread while loop hanging
by Patrick2003
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |