in reply to making perl more forgiving

for example: print "fox': would still run correctly! and print literally "fox".

Well, it isn't that hard to modify perl to allow that. Of course, as soon as you have a perl that allows that, you'll come crying "how do I print a sentence with a quote in it?", because if you write:

print "O'Reilly";
your perl is going to think the string ends after the O.

Besides, if you can use either quote, what's this going to print:

my $value = 7; print "The value is $value';
will it do interpolation or not? And how many terminating delimiters are you going to allow if you start a string with qq !?

Abigail

Replies are listed 'Best First'.
Re: Re: making perl more forgiving
by ambrus (Abbot) on May 16, 2004 at 16:25 UTC
    It should do interpolation: interpolate the variable ${value::;}