Perl language structure: Difference between revisions

Content deleted Content added
m WPCleaner v1.31b - Fixed using WP:WCW - HTML named entities without semicolon
m clean up using AWB (9987)
Line 70:
|A piece of code that may be passed arguments, be executed, and return data.
|-
|[[Perl#Typeglob_valuesTypeglob values|Typeglob]]
|*
|*foo
Line 78:
===Scalar values===
 
String values (literals) must be enclosed by quotes. Enclosing a string in double quotes allows the values of variables whose names appear in the string to automatically replace the variable name (or be '''[[Variable_interpolationVariable interpolation#Interpolation|interpolated]]''') in the string. Enclosing a string in single quotes prevents variable interpolation.
 
For example, if <code>$name</code> is <code>"Jim"</code>: