in reply to Re^3: Pointers and References
in thread Pointers and References
I have to say I come from C and back then (yes! Then) without goofle and the free literature it was a lot of hard work to conquer the pointers. I can't let it go now. I have often debated internally whether thinking in C while writing Perl was a good habit/idea/practice. It is NOT. But when %$^$& comes to shovel I have to think of some ways to make it faster. Because I am too lazy to program it in C eventually. And these are some of the tricks I pull.
That's why my subs most of the times have a hashref of params as input (as opposed to array-style (file => 'aaa' , action => 'delete')) and I always return a hashref or arrayref or object back, but never ever an array. I think somewhere an angel dies when I do that. Cargo-culting perhaps, plus I am not a natural Perl-er.
bw, bliako
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Pointers and References
by LanX (Saint) on Nov 24, 2020 at 12:17 UTC | |
by bliako (Abbot) on Nov 24, 2020 at 19:33 UTC | |
by LanX (Saint) on Nov 24, 2020 at 19:52 UTC | |
by bliako (Abbot) on Nov 24, 2020 at 20:38 UTC | |
by AnomalousMonk (Archbishop) on Nov 24, 2020 at 22:18 UTC | |
by LanX (Saint) on Nov 25, 2020 at 13:55 UTC | |
| |
by Leudwinus (Scribe) on Nov 25, 2020 at 15:33 UTC | |
by LanX (Saint) on Nov 25, 2020 at 16:14 UTC | |
| |
by AnomalousMonk (Archbishop) on Nov 24, 2020 at 20:13 UTC | |
by Leudwinus (Scribe) on Nov 25, 2020 at 15:37 UTC | |
by bliako (Abbot) on Nov 24, 2020 at 20:44 UTC |