output:#!/usr/bin/perl -l use strict; use warnings; map { print "[$_]" } scalar( 1 == 0 ), ~~ '', ~~ scalar( 1 == 0 ), ~~ ( 1 == 0 );
It is strange for me, that print ~~ scalar( 1 == 0 ) outputs '0' even when scalar( 1 == 0 ) corresponds to ''.[] [] [0] [0]
In reply to Inchworm vs scalar: on boolean false value by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |