develooper Front page | perl.perl5.porters | Postings from March 2016

[perl #127684] operators '|||' and '&&&'

Thread Previous | Thread Next
From:
Ulrich Windl
Date:
March 10, 2016 12:10
Subject:
[perl #127684] operators '|||' and '&&&'
Message ID:
rt-4.0.18-31773-1457611801-36.127684-75-0@perl.org
# New Ticket Created by  "Ulrich Windl" 
# Please include the string:  [perl #127684]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127684 >


Hi!

While writing a program for perl-5.10, I wondered whether the is an AND-equivalent for '//' for a closure like
sub {
        my $hi = $header_i{(shift)}  ??? return $hi;
        die;
    };

Where '???' is the operator that doesn't exist.
Thus I wondered why the perl gurus didn't choose '|||' instead of '//'; then '&&&' would be just the natural thing for the AND-variant.
Did I overlook something that would have prevented use of those operators?

Regards,
Ulrich



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About