in reply to how to make this perl code run

Quote your strings

my $str1 = "Hi"; my $str2 = "Hello and a newline\n";

Update

Doh, I just saw, "how do I make this code run". and thought, fix it! I did not read all the constraints.

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!

Replies are listed 'Best First'.
Re^2: how to make this perl code run
by marto (Cardinal) on May 16, 2013 at 13:59 UTC

    They said:

    'I will not put the strings in ""'