in reply to Re^2: splitting directly to hash
in thread splitting directly to hash

OK, but just append a space before you split.

my $env = "1 2 3 4 5".' '; my %h = split //, $env;

Also, this assumes the poster meant:  key =>' ' and not key => '' when the they said "blank".