Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Check for next array element.

by Eimi Metamorphoumai (Deacon)
on Nov 18, 2005 at 15:53 UTC ( #509841=note: print w/replies, xml ) Need Help??


in reply to Check for next array element.

Yet another suggestion: go through the loop and tell ever item (including the last one) that it's not the last. Then after the main loop, change the value for the last item. It's not as direct as some of the other suggestions, but if there's a lot of other stuff in the loop, it might be the simplest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-10-24 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (246 votes). Check out past polls.

    Notices?