in reply to warning! -- Why?
( $used_options{ $1 } = 1 and "\${$1}" )
I fail to see why you are using and here in the first place. Is there any scenario under which $used_options{ $1 } = 1 evaluates to false?
🦛