adding a '+' to the regex eliminates trailing spaces in the values:
# = my %hash = map { $_, ($string =~ m/$_:(.+?)\s+$z/)} @keys; # =
Software efficiency halves every 18 months, thus compensating for Moore's Law.
In reply to Re^2: Parsing file in Perl post processing
by NetWallah
in thread Parsing file in Perl post processing
by gbwien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |