in reply to Re^2: escaping the @ in an interpolating string
in thread escaping the @ in an interpolating string

Those are all doing the same thing that Corion explained. They are inferring that $$, $undefined_variable etc are symbolic references to an array. If you 'use strict' it will give an error. Without 'use strict' you can do something like:
perl -e '@hi = (1,2,3), my $x = "hi"; print "@$x\n";'
and it will output:
1 2 3

Replies are listed 'Best First'.
Re^4: escaping the @ in an interpolating string
by raygun (Scribe) on Aug 10, 2024 at 19:23 UTC
    Ah, it would've helped if I hadn't misread Corion's explanation. Yours managed to penetrate my thick skull. Thank you!