Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: $_ not set in while <>

by Anonymous Monk
on Jun 08, 2021 at 17:06 UTC ( #11133665=note: print w/replies, xml ) Need Help??

in reply to Re^2: $_ not set in while <>
in thread $_ not set in while <>

Respectfully dissenting here ... I find last if(s) to be quite useful, because you can quite easily have as many of them as you like. Even if (as is quite usually the case ...) the actual "while condition" is a dummy, the series of last if statements which immediately follow it spell-out every one of the possible "exit conditions," one at a time, separately.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133665]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-08-05 02:40 GMT
Find Nodes?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)

    Results (44 votes). Check out past polls.