Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: In Need of Mentoring

by educated_foo (Vicar)
on Jan 15, 2012 at 23:54 UTC ( [id://948035]=note: print w/replies, xml ) Need Help??


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

LOL.
You almost make it sound as if coding style were merely a matter of fashion and not a matter of correctness. Consider the difference between a C-style for loop and iteration.
I'd say the difference is a matter of *style*. Which way you write your loop has fuck-all to do with correctness, but the C-style loop will likely get you scolded on this website.

EDIT: Apparently, I should have logged out and posted this anonymously to avoid losing karma. Oh, well.

Replies are listed 'Best First'.
Re^4: In Need of Mentoring
by chromatic (Archbishop) on Jan 16, 2012 at 02:55 UTC
    ... the C-style loop will likely get you scolded on this website.

    If you've never made a fencepost error, I salute you. The rest of us mortals seem to benefit from not having to worry about such things.


    Improve your skills with Modern Perl: the free book.

      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.
Re^4: In Need of Mentoring
by Anonymous Monk on Jan 16, 2012 at 07:23 UTC
    "LOL" == what a dog's tongue does on a hot day. You've made it clear what your slobberings are worth
      It's clever and courageous of you to log out before posting this "witty" comment.
Re^4: In Need of Mentoring
by ForgotPasswordAgain (Priest) on Jan 16, 2012 at 23:27 UTC
    Nah, FWIW I ++ed it. Also FWIW, I think the OP should just put the thing on CPAN, none of this github etc crap. (Don't give in to the CPANazis.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 16:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found