go ahead... be a heretic | |
PerlMonks |
Re: escaping the @ in an interpolating stringby Corion (Patriarch) |
on Aug 10, 2024 at 17:54 UTC ( [id://11160979]=note: print w/replies, xml ) | Need Help?? |
@$0 is seen as @{ $0 }, which takes $0 as a symbolic reference to the array named -e:
If you enable strict, symbolic references are disallowed though: perl -Mstrict -e '@{q(-e)} = qw(Hello World); print "$0: @$0\n"'
In Section
Seekers of Perl Wisdom
|
|