Help for this page

Select Code to Download


  1. or download this
      $x=15;
      $x.=4;
      $x+=2; # ==> 156
    
  2. or download this
    $temp1=eval { 0+$value1 };
    $temp1=$value1 if $@; Perl says it is not a number
    ...
    # By virtue of eval, we can now use string equality
    # even if the values were numbers before.
    if ($temp1 eq $temp2) { ... }