in reply to Re^2: How to properly go through a WWW::Mechanize::Link object?
in thread How to properly go through a WWW::Mechanize::Link object?

Method calls don't interpolate. Nor do subroutine calls or indeed anything other than simple variables and their dereferences.

See the FAQ: How do I expand function calls in a string? for alternatives and workarounds.

Update: and also How can I expand variables in text strings? for good measure.

  • Comment on Re^3: How to properly go through a WWW::Mechanize::Link object?