http://www.perlmonks.org?node_id=931344


in reply to Re^2: Issue with env variables set through dos batch
in thread Issue with env variables set through dos batch

You forgot 3. Use the solution I provided.

(1) is the simplest.