XP is just a number | |
PerlMonks |
Re: Question about WWW::Mechanize::Link string interpolationby sk (Curate) |
on Oct 13, 2005 at 05:43 UTC ( [id://499766]=note: print w/replies, xml ) | Need Help?? |
Double quoted strings do not interpolate methods. It just interpolate scalars and arrays. So when Perl sees "$scalar->something()" it evaluates $scalar first, that's why you get the reference instead of the URL. In your case ->url() is treated as literal string and prints it as is. A simple example -
In Section
Seekers of Perl Wisdom
|
|