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?