in reply to Re^4: Stuck in Perl.. Partial code, but it needs more improvement.. Any suggestions, please?
in thread Stuck in Perl.. Partial code, but it needs more improvement.. Any suggestions, please?
I always use or in such situations, and I dislike perldocs which do otherwise, because these are invitations for refactoring problems.
Personally I use || only in
- in arithmetic expressions $x = $y || $z
- to override false defaults were $x ||= $y
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
update
swapped $a, $b with $y,$z to appease hippo ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Stuck in Perl.. Partial code, but it needs more improvement.. Any suggestions, please?
by hippo (Bishop) on Jun 04, 2021 at 12:44 UTC |
In Section
Seekers of Perl Wisdom