in reply to Another "Find the bug!" Node

You're changing the contents of the @{$EXPORT_TAGS{all}} array which is shared with Package1. To correct, change the push line to this:

$EXPORT_TAGS{all} = [$EXPORT_TAGS{all}, "foobar"];