in reply to Test::More not working with Perl local special variables
This is a timing thing. Your double-quoted string "1000.0362 SSID was displayed on the wireless settings page \($&\)" is interpolated before like is called; then the regexp match happens inside the like call.
So when the interpolation happens, $& is still undefined.
The following might work:
like($sel->get_value("name=wlSsid_wl0v0"), qr/\S{1,}/, "1000.0362 SSID + was displayed on the wireless settings page") and diag("got: $&");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Test::More not working with Perl local special variables
by Doozer (Scribe) on Apr 23, 2013 at 07:01 UTC |