in reply to Re^2: regex question
in thread regex question

Yes, but if you used the correct type of quotes that wouldn't be a problem:

my $string = 'Hello $World' . "\n";

Or escape your $ character.

By the way, your script is failing on this line:

my $string = "Hello $World \n";

That's happening in the compilation phase, not runtime.


Dave