in reply to Environment variable is an array

env variable is a string (see man execve, for example). Best way how to achieve required functionality is to use separator:
# shell export NUMS="one:two:three" # perl my @nums = split /:/, $ENV{NUMS};