my $var; # Declares a single variable. #### my $var = "Hello world!\n"; my $var = 10; my $var = 0; my $var = ""; my $var = \@some_array; my $var = \%some_hash; my $var = \$some_scalar; my $var = \&some_function; #### my ( $this, $that ); #### my ( $this, $that ) = ( "the", "other" ); #### my ($var); #### my ($var) = "This"; #### my ( $this, $that ) = "The other"; #### my @array = ("This", "That", "and", "The", "Other"); my %hash = ( "This" => "That", "The" => "Other" ); my $var = ("This", "That"); # $var now contains "That". my ( $this, $that ) = \( $the, $other ); # The reference # constructer is distributive and # applies to both items inside the rvalue # list.