Skip to content

Commit

Permalink
Modified output of address example
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieb9 committed Dec 19, 2022
1 parent 9d17025 commit 7e95550
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion examples/address.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,19 @@

my $car = Tesla::Vehicle->new(auto_wake => 1);

print Dumper $car->address;
my $address = $car->address;

print "\n";

say "road: $address->{road}";

for (sort keys %$address) {
next if $_ eq 'road';
next if /ISO3166/;
say "$_: $address->{$_}";
}

my $gear = $car->gear;
say "gear: $gear";

print "\n";

0 comments on commit 7e95550

Please sign in to comment.