You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/perl
|
|
use strict;
|
|
use warnings;
|
|
|
|
my %default_animals = (Cat => 'Tom', Mouse => 'Jerry');
|
|
my %input_animals = (Cat => 'Ginger', Mouse => 'Jerry');
|
|
|
|
my %animals = (%default_animals, %input_animals);
|
|
print "$animals{Cat}\n"; # prints 'Ginger' |