variables perl
# Basic syntax:
# In Perl, variables generally start with one of $, @, or % (called sigils)
# Scalars (strings, floats, ints) start with $, e.g.:
my $scalar_variable = "This string";
# Arrays (lists) start with @
my @array_variable = (2.3, 42, "Word");
# Hashes (dictionaries) start with % and use "key => value" to assign mappings
my %hash_variable = (
42 => "The answer",
mice => "vast, hyper-intelligent pan-dimensional beings",
);
Charles-Alexandre Roy