Questions about this topic? Sign up to ask in the talk tab.
Difference between revisions of "Perl/Basics/Variables and Data Types/Scalars"
From NetSec
AlizaLorenzo (Talk | contribs) (Created page with "Scalars in perl are prefixed with a '''$'''. A scalar may contain any string, integer, or floating point value. It may also contain a reference pointer. An example declaration:...") |
Chantal21I (Talk | contribs) m (moved Perl/Basics/Variables and Data Types/Helper Functions/Join to Perl/Basics/Variables and Data Types/Scalars) |
(2 intermediate revisions by one other user not shown) | |
(No difference)
|
Latest revision as of 03:13, 19 July 2012
Scalars in perl are prefixed with a $. A scalar may contain any string, integer, or floating point value. It may also contain a reference pointer. An example declaration:
<syntaxhighlight lang="perl">my $message = "Hello world!\n"; print $message;</syntaxhighlight> |