The newlines will be\noutput as well ."; print "escaping characters is done \"Like this\" ."; / / You can use variables inside of an print statement $foo = "foobar"; $bar = "barbaz"; print "foo is $foo"; / / foo is foobar / / Using single quotes will print the variable name, not the value print'foo is $foo'; / / foo is $foo / / If you are not using any other characters, you can just print variables print $foo; / / foobar print END This uses the "here document "syntax to output multiple lines with $variable interpolation.
Les nouvelles lignes\nseront aussi affich eacute; es ."; print "L 'eacute;chappement de caract egrave;res se fait: \"comme ceci\" ."; / /Vous pouvez utiliser des variables avec print $foo = "foobar"; $bar = "barbaz"; print "foo vaut quot;$foo quot ;"; / / foo vaut "foobar "/ / Les guillemets simples eacute;vitent le remplacement des variables print 'foo is $foo'; / / foo vaut "$foo" print END Cette syntaxe s'intitule le "here document "et permet d'afficher plusieurs lignes avec de l 'interpolation de variables.