Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: In Need of Mentoring

by JavaFan (Canon)
on Jan 16, 2012 at 09:22 UTC ( #948097=note: print w/replies, xml ) Need Help??


in reply to Re^4: In Need of Mentoring
in thread In Need of Mentoring

Of course I've made fence post errors. But then on constructs that would be really awkward to do without C-style for loops.

I don't think I've ever made a fence post error on

for (my $i = 0; $i < @array; $i++) { ... }
where I would not modify @array or $i, nor use $i to look elsewhere in the array. But then, this is about the only case where I would not use a C-style for loop, but a Perl style foreach.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948097]
help
Chatterbox?
[stevieb]: I have learned that my daughter has significant brain injury, so that's affecting my decisions. Don't know who to reach out to. I just want to vent. I am honestly lost. It's something I can't code around.
[stevieb]: I am infuriated at the same time I am hopeless. It appears there are approaches to 'fix' things, but, you know..,

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-02-25 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (365 votes). Check out past polls.