in reply to Re^2: cv = (irand(2))?"+":"-";
in thread cv = (irand(2))?"+":"-";

Variables cannot stand in for operators. Again, you're sort of just making syntax up as you imagine it ought to be. Reading perlintro may help you to bring your expectations in line with the reality of the language.


Dave

Replies are listed 'Best First'.
Re^4: cv = (irand(2))?"+":"-";
by Your Mother (Archbishop) on Apr 05, 2016 at 15:14 UTC
    print eval "$x $z $y", $/; # :P

    monorels, don't really do that; it's snark here, not a good practice.