- or download this
push @client_list,
Client::Data::->new(name => $name, address => $addr, city => $city
+);
- or download this
my $wanted_client = 'Mary Smith';
- or download this
for my $client (@client_data) {
if ($client->name eq $wanted_client) {
...
last;
}
}
- or download this
print "${wanted_client}'s city is ", $client_data_for{$wanted_client}-
+>city;