in reply to cannot modify LINUX env vars

That's not how the environment works. Changes are only visible to the current process and its children. You cannot change the "upwards" environment.

The traditional technique is to output a shell script that the "upper" process then evaluates:

# In the parent shell do: $(perl -wle 'print "export pathy=kuku') echo $pathy