- or download this
BEGIN {
*call_to_inspect = ( rand() < 0.5
...
: sub (@) {}
);
}
- or download this
BEGIN {
*call_to_query = ( rand() < 0.5
...
sub inspector { print wantarray ? 1 : 0, "\n" }
call_to_inspect(inspector());
- or download this
>perl a.pl
1
...
>perl a.pl
1