in reply to Array interpolation in a string
If it's intended interpolation, then you have probably made a typo in the name of the variable. The warning is saying that you are trying to interpolate an array whose name is unknown.
If you don't intend to interpolate it (e-mail addresses are notorious for triggering this), just add backslash (\) before the @. That tells the tokeniser that it is a literal @, and not the opening sigil of an array to be interpolated.
If you don't care either way, write:
use warnings; no warnings 'ambiguous';
and then the message will never appear.
• another intruder with the mooring in the heart of the Perl
|
|---|