yup, this is gonna look like a bump to m0oni's post
If you can give it a try, accessing EMU variables from perl just takes you to declare prototype in a *.xs source file, then you call for that function in the quest as you need, instead of processing all ExportVars for each event.
Also, maybe i missed something, but is this is Perl, $target[xxx] just thrills me (means you exported the xxx as a constant to qstnnn:: package

)
take a look there :
http://www.eqemulator.net/forums/viewtopic.php?t=12393