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


in reply to Perl and paths...again :-(

Perhaps try setting $FMW{...}="..."; instead.

Then

for my $key (keys %FMW) { print "fmw-$key =\[$FMW{$key}\]\n"; print "env-$key =\[$ENV{$key}\]\n"; print "MISMATCH!\n" if $FMW{$key} ne $ENV{$key}; }
and compare to see if there are any odd escape characters or encoding issues or whatnot.