On 10-11-29 11:51 PM, John wrote:
I tried using that, but $test wasn't changed here:

     $test = "This is a test.";

     $x = "is";
     $y = "si";

     eval $test =~ y/$x/$y/;

     print "$test\n";

Try:

eval "\$test =~ y/$x/$y/;";


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

The secret to great software:  Fail early & often.

Eliminate software piracy:  use only FLOSS.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to