http://www.perlmonks.org?node_id=1002172


in reply to WWW::Mechanize::Firefox Navigate Issue !

You need an interpolating quote operator:
my $find_button = $mech->xpath(qq{//*[\@id="$Pager"]}, single => 1 );
Edit: forgot to escape "@"
Sorry if my advice was wrong.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize::Firefox Navigate Issue !
by Anonymous Monk on Nov 05, 2012 at 08:54 UTC
    *cough*  Possible unintended interpolation of @id in string at - line 1.