in reply to Re^8: What's the right way to write a method which returns one line at a time from a file?
in thread What's the right way to write a method which returns one line at a time from a file?
Somewhat tangential, but a less messy, more readable and preferable (IMHO) version of this is:
return COND_A ? A : COND_B ? B : COND_C ? C : COND_D ? () : # returns undef or empty list per context die "unmatched case" ;
Give a man a fish: <%-{-{-{-<
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: [OT]: Re^9: What's the right way to write a method which returns one line at a time from a file?
by eyepopslikeamosquito (Archbishop) on Nov 26, 2020 at 09:52 UTC | |
by AnomalousMonk (Archbishop) on Nov 26, 2020 at 10:07 UTC | |
by eyepopslikeamosquito (Archbishop) on Nov 26, 2020 at 10:20 UTC |
In Section
Seekers of Perl Wisdom