Help for this page

Select Code to Download


  1. or download this
    perl -we "$x="LanX"; print ($x * 3);"
    Argument "LanX" isn't numeric in multiplication (*) at -e line 1.
    0
    ...
    perl -we "$x="LanX"; print (3**$x);"
    Argument "LanX" isn't numeric in exponentiation (**) at -e line 1.
    1
    
  2. or download this
    perl -we "$x='7LanX'; print (3^$x);"
    Argument "7LanX" isn't numeric in bitwise xor (^) at -e line 1.
    4
    ...
    perl -we "$x='7LanX'; print (3**$x);"
    Argument "7LanX" isn't numeric in exponentiation (**) at -e line 1.
    2187
    
  3. or download this
    perl -we "$x=\"5\"; print ($x*3);"  # 2
    15
    perl -we "$x='5'; print ($x*3);"
    15