Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: last in a do while loop

by Hofmator (Curate)
on Nov 03, 2006 at 13:39 UTC ( #582081=note: print w/ replies, xml ) Need Help??

in reply to Re: last in a do while loop
in thread last in a do while loop

Mmhh, I know this is just copy and pasted code, but it makes me wonder anyway - is it just me or is the code for the last example slightly strange?

  • if $x = $y**2; why choose a confusing assignment instead of a normal comparison?
  • Why not the explicit last LOOP? I know that it works here without it all right but I don't see the benefit of labelling the block without using the label afterwards

-- Hofmator


Comment on Re^2: last in a do while loop
Select or Download Code
Re^3: last in a do while loop
by davorg (Chancellor) on Nov 03, 2006 at 13:48 UTC

    I was thinking exactly the same things as I was writing the post. I foresee a couple of patches being sent to the maintainers.


    -- Chip Salzenberg

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-12-26 20:53 GMT
Find Nodes?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?

    Results (176 votes), past polls