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 -w
|
|
|
|
use strict;
|
|
|
|
my %person = (
|
|
name => 'Joe',
|
|
age => 13,
|
|
phone => '555-1212',
|
|
city => 'Chicago'
|
|
);
|
|
|
|
my @data = %person;
|
|
|
|
print "list context: ", join("|", @data), "\n";
|
|
print "another way: ", %person, "\n"; |