in reply to Re: Strange behavior
in thread Strange behavior

Thanks for clarifying that! It was my guess that the "" was forcing $foo to be interpolated into the string before the substitution operation was performed on it.

You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.

Replies are listed 'Best First'.
Re^3: Strange behavior
by ikegami (Patriarch) on Jul 03, 2014 at 05:15 UTC

    What interpolation???

    In short:

    In the first snippet, you are concatenating $foo with $foo, so that's what you get.

    In the second snippet, you are concatenating something derived from $foo and $foo, so that's what you get.