According to the docs on DynaLoader
dl_unload_file()
Dynamically unload$libref
, which must be an opaque 'library reference' as returned fromdl_load_file
. Returns one on success and zero on failure. This function is optional and may not necessarily be provided on all platforms.
So dl_load_file
returns those opaque reference. But what if my file wasn't loaded by explicitly calling dl_unload_file
how do I then find out those references?
You can find those references by using the following variables, as documented in the source
However, matching them to the name of the library remains an exercise to the user though it seems as if they're index-sensitive into those three arrays. You can do it like this,