You can always localise $_ in your while loops yourself
for (1..3) { while(local $_=<STDIN>) { print; #Prints whatever was typed } print; # print 1, 2, 3 }
In reply to Re: While but not for clobbers $_
by BrowserUk
in thread While but not for clobbers $_
by tenya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |