Got it working. Leaving last post for posterity, unless others suggest I delete it (sorry, I don't make my way into forums much anymore).
Anyway - THANK YOU, again, @sikha !
here's my modified script for Proxmox 8:
#!/usr/bin/perl
use strict;
use warnings;
my %associations = (
102 =>...