Help for this page

Select Code to Download


  1. or download this
    >>> true
     
    ...
    >>> "stringification: " + (1==1)
     
    "stringification: true"
    
  2. or download this
    use v5.10.0;
    use boolean;
     
    say true;
    say "stringification:" . (1==1);
    
  3. or download this
    /usr/bin/perl -w /tmp/boolean.pl 
    1
    stringification:1
    
  4. or download this
    use Scalar::Util qw/dualvar/;
     
    ...
    say $false;
    say "stringification: " . $false;
    say "numification: " . (0+$false);