in reply to Why doesn't % interpolate?

Historicly, BTW, note that the interpolation of scalars has been there since the beginning (I think), whereas interpolation of arrays is rather new (5.0 partialy, normalized somwhat in 5.6, thanks, toma).


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re: Re: Why doesn't % interpolate?
by bart (Canon) on Apr 19, 2003 at 21:22 UTC
    I'm almost certain that interpolation of arrays was available in perl4. Hmm... it was. I just tested it with perl 4.036.

    See the first paragraph in this document describing traps when going from perl4 to perl5.

    @ now always interpolates an array in double-quotish strings.
    Note the word "always". It used to be so that perl4 only interpolated arrays where they existed before being used in a string.