my ($var, $value) = split(/=/, $_);
Better make that
my ($var, $value) = split(/=/, $_, 2);
or else it will break if a value contains a =.
Abigail
In reply to Re: setting perl ENV from file
by Abigail-II
in thread setting perl ENV from file
by kcorcam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |