"Number of Records: $numrec\n"
"Number of Records: \$numrec\n"
"Number of Records: ${\ get_number_of_records() }\n"
"Number of Records: \${\ get_number_of_records() }\n"
Or my $string = <<" HEREDOC";
my $name = "Thompson";
HEREDOC
It's much less important in something like C where you would just being using something like sprintf().I think the sigils alone are sufficient to flag variables in strings...but when things get complicated and span multiple lines, it can become ugly and difficult to work with. But, I'm not convinced this is the most useful function of highlighting in perl (again, because the sigils already provide visual clues)...it think it's more useful in pointing out unclosed parens, brackets, quotes, etc., and letting you know your syntax is wonky.
That said, it may be laziness on my part. I find it soothing to have highlighting enabled, and I get nervous when it's not, as I'm never quite sure I've got the syntax right until I check it.
Personally, I like limited syntax highlighting: I only highlight strings, comments and sometimes keywords (in Common Lisp). It lets me quickly separate the code in useful chunks and also highlights a common source of errors that I make (made): forgetting to close strings.
Here's a screenshot: http://imgur.com/rx053 (My Vim color scheme isn't quite there yet: the colors are too bright.)
[1] http://www.catb.org/jargon/html/A/angry-fruit-salad.html
I might even try it again one of these days.