evalexpr?evaltrue:evalfalse would like evaltrue defaulted by evalexpr #2243
Comments
From mar@cf.nettuno.itThis is a bug report for perl from mar@cf.nettuno.it, This is not a bug, but an usefull and easy enhancement -i think: this absence can return by default the value of evalexpr having actually perl returns syntax error near "?:" for efficency and code more light All the best, Flags: Site configuration information for perl v5.6.0: Configured by pixel at Fri Mar 31 16:32:49 CEST 2000. Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Locally applied patches: @INC for perl v5.6.0: Environment for perl v5.6.0: |
From [Unknown Contact. See original ticket]Marco Munari <mar@cf.nettuno.it> wrote
The || operator already does exactly what you are asking for. Mike Guy |
From [Unknown Contact. See original ticket]On 20 Jul 2000, Marco Munari wrote:
perhaps you want the equivalent (and currently legal): $val = evalexpr || evalfalsecase; -Aaron |
From @ysthIn article <Pine.A41.4.05.10007210845000.67816-100000@node13.unix.Virginia.EDU>,
Subtle difference: C<a ? a : b> gives boolean context to the first a. |
Migrated from rt.perl.org#3559 (status was 'resolved')
Searchable as RT3559$
The text was updated successfully, but these errors were encountered: