http://qs321.pair.com?node_id=393251


in reply to •Re: Use B::Deparse to see why
in thread Surprising whitespace behavior

@-interpolation in a string dates back to Perl version 5.000.

Oh, you young'uns. (:

It dates back way before that. I've personally used @-interpolation in strings in Perl v3.

> perl4 -e "print qq<(tye@ARGV)\n>" this that (tyethis that) > perl4 -e "print qq<(tye@foo)\n>" this that (tye@foo)

What changed with Perl5 was that the DWIM of optional interpolation was removed.

The only reason the second example needs to be fatal in Perl5 is so that the change in behavior was not a "silent change".

I suspect you know all of this, but your node was at least misleading so I felt clarification was in order.

- tye        

Replies are listed 'Best First'.
•Re^3: Use B::Deparse to see why (age)
by merlyn (Sage) on Sep 23, 2004 at 16:23 UTC
    Oddly enough, that's what I was trying to think, but it was too early in the morning for me to remember that. I kept thinking "wasn't @foo interpolated as far back as perl 2?" But then I couldn't remember why the error was added in perl5.

    Thanks for the clarification. I'm getting too old for this. {grin}

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.