in reply to GLOB reference problem

The contents of %{...} are expected to be a reference and instead you have a glob.

Two changes I would make to the above code

However, it is generally not good programming practice to break the opacity of an object reference. I would look more carefully at the docs for the FTP module and rewrite the code so that the hash assignment is unnecessary.

Best, beth