V
valued customer
my $variable = 'fill in blanks';
my $question = q^
One of the very useful features of perl is the quotelike
operator, because it makes it very easy to create a
"subdocument within a document" ... which brings up
a question, does any other programming language have
anything even close to this functionality?
Python has the triple-quote feature, which is nice, but
still creates minor hassles if you want to want to output
a triple-quote inside your 'subdocument' (use-versus-mention).
XML has CDATA sections, which suck, and suffer from
(use-versus-mention) as well.
Moreover, none of them make it easy to ^.$variable.q^ with
variables.
Is there any other programming environment that has this
feature? Can anyone name even one??
Why doesn't every programming environment have a similar
feature? Adding 'escape sequences' to strings is
error-prone, less readable, and annoying!
^;
print $question;
my $question = q^
One of the very useful features of perl is the quotelike
operator, because it makes it very easy to create a
"subdocument within a document" ... which brings up
a question, does any other programming language have
anything even close to this functionality?
Python has the triple-quote feature, which is nice, but
still creates minor hassles if you want to want to output
a triple-quote inside your 'subdocument' (use-versus-mention).
XML has CDATA sections, which suck, and suffer from
(use-versus-mention) as well.
Moreover, none of them make it easy to ^.$variable.q^ with
variables.
Is there any other programming environment that has this
feature? Can anyone name even one??
Why doesn't every programming environment have a similar
feature? Adding 'escape sequences' to strings is
error-prone, less readable, and annoying!
^;
print $question;