in reply to perl file returning values

If you'll show us your "perl .pl file," we may be able to help.

Knowing how you're creating the variable is sorta' important.

update: d'uh; see below. misread. Advice above is generic but not necessary here.