in reply to Scalar dereference error

You have a surplus '$' before $my_ldn_list. That's trying to dereference $my_ldn_list before it exists.

After Compline,
Zaxo