Perl language structure: Difference between revisions

Content deleted Content added
m Formatted code in text
Basic syntax: cite when say feature: ver 5.10
Line 6:
print "Hello, World!\n"
</source>
This [[Input/output|prints]] the [[String (computer science)|string]] ''Hello, World!'' and a [[newline]], symbolically expressed by an <code>n</code> character whose interpretation is altered by the preceding [[escape character]] (a backslash). Since version 5.10, the new 'say' builtin<ref>{{cite web|url=http://perldoc.perl.org/feature.html#The-'say'-feature|title=Features|work=Perldoc|publisher=Perl.org|accessdate=24 July 2017}}</ref> produces the same effect even more simply:
<source lang="perl">
say "Hello, World!"