- or download this
print "His name is $hash[firstname] $hash[lastname]\n;
- or download this
print "His name is $hash{firstname} $hash{lastname}\n;
- or download this
#!/usr/local/bin/perl -w
{
...
print "His name is $data->{firstname} $data->{lastname}\n";
print "His name is $data->[1] $data->[2]\n";
- or download this
$VAR1 = bless( [
{
...
], 'Record' );
His name is Bob Smith
His name is Bob Smith