Hi,
That's because you're passing in the ID - just change these lines
my $tags = shift;
my $id = $tags->{'ID'};
to
my $id = shift;
That's because you're passing in the ID - just change these lines
my $tags = shift;
my $id = $tags->{'ID'};
to
my $id = shift;