#!/usr/bin/env perl -l my $foo = "WRONG"; my $bar = 'right'; # variables can have braces print "** variables with braces"; print ${bar}; print; # double-quoted -- $bar should be highlighted print "** double-quoted strings"; print "this is $bar"; print qq{this is $bar}; print qq{some${bar}thing}; print qq~this is $bar~; print qq(this is $bar); print qq(this is (this is $bar)); print qq{this is {this is (this is $bar)}}; print qx{echo -n 'this is $bar'}; print `echo -n this is $bar`; print qq'this is $bar'; print eval{qqwrongw}; # should not be a string\n print eval{qq{right}}; print <