Two problems with your code
- the e modifier does not work for matches (m//), only for substitutes (s///).
- The @{ATTRIBUTE} form is incorrect (it even says to in the SOPW you pointed at)
The correct (i.e. no syntax errors, I can't vouch against logic errors) code is:
print "attribute 0=\t$1\n" if m/${\ATTRIBUTE_0}='(.*)'/;
print "attribute 1=\t$1\n" if m/${\ATTRIBUTE_1}='(.*)'/;