in reply to Re^3: Remove similar key=value pair from HOH
in thread Remove similar key=value pair from HOH

What's the problem?

The expression  'script' => 'foo.pm' is rendered in the  Dumper output as "'script' => 'foopm'", which is puzzling (although I cannot reproduce this ;-)


Give a man a fish:  <%-(-(-(-<

Replies are listed 'Best First'.
Re^5: Remove similar key=value pair from HOH
by choroba (Cardinal) on Apr 12, 2015 at 00:45 UTC
    Quoting issue. Single quotes can't be nested, so foo and pm are unquoted, i.e. interpreted as barewords, and as no such functions exist, they're turned into strings and concatenated by the dot operator.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Ah! Looking at Re^2: Remove similar key=value pair from HOH again, I see it's run without strictures and apparently on a *nix system. Interesting. I was trying to reproduce on Windows: I guess Windows has to be good for something!


      Give a man a fish:  <%-(-(-(-<