in reply to Idiomatic Perl?
I see two things in that code that I would suggest to improve:
In Perl, as opposed to Python's "there should be one - and preferably only one - obvious way to do it", TIMTOWTDI - There Is More Than One Way To Do It. While there are certainly 20 different ways to write the code you showed, don't worry about that too much - just keep your eye out for best practices like the ones I mentioned above, and otherwise enjoy learning Perl :-) We'll be happy to help.
Made a few minor edits.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Idiomatic Perl?
by thenextfart (Novice) on Mar 20, 2018 at 14:26 UTC | |
by haukex (Archbishop) on Mar 20, 2018 at 14:46 UTC | |
by Anonymous Monk on Mar 20, 2018 at 19:10 UTC | |
by 1nickt (Canon) on Mar 20, 2018 at 14:30 UTC | |
by Corion (Patriarch) on Mar 20, 2018 at 14:47 UTC | |
by choroba (Cardinal) on Mar 20, 2018 at 15:03 UTC |