princepawn has asked for the wisdom of the Perl Monks concerning the following question:

I want to do the following $hashref = { 'example' => $text }; where $text is the text below, but I dont know how to literal such a complicated body of text like this: "I'm right." "No, I'm right." "You're missing the point." "No, you're missing the point."

Replies are listed 'Best First'.
Re: Verbatim or Quoted Text Needed
by btrott (Parson) on May 16, 2000 at 21:41 UTC
    How about:
    my $hashref = { 'example' => <<TEXT }; "I'm right." "No, I'm right." "You're missing the point." "No, you're missing the point." TEXT
    If you don't like here-docs, you could use one of the quote-like operators (see perlop):
    my $hashref = { 'example' => qq( "I'm right." "No, I'm right." "You're missing the point." "No, you're missing the point.") };