it's because the format of a flag is like:
$variable="value"
$variable2=#FF00FF
shape{
$color
}
but one of the special variables is the "name" and a flag can have multiple names. So... you just assign the variable more than once! and it remembers all of them!
@DPA @foone wait, does perl even support this kind of thing? from what i understand you have to call push
or unshift
to add stuff to an array, rather than using a special version of the assignment syntax
i don't have that much perl experience so there might be like, a deprecated syntax that technically works as an alternative to calling the array manipulation builtins? but i did a quick search and found nothing about it
this absolutely works in php though yes
@DPA that's even more insulting than the perl thing!