in reply to Re^3: Update to smartmatch
in thread Update to smartmatch
But why live with the warnings and the uncertainty about the function's future?
Or:perl -wE ' my @foo = (1, 2, 3); my @bar = (1, 2, 3); my @baz = (1, 2, 4); say "@foo" eq "@bar"; say "@foo" eq "@baz"; ' 1
smartmatch:perl -MTest::Deep::NoTest=eq_deeply -wE ' my @foo = (1, 2, 3); my @bar = (1, 2, 3); my @baz = (1, 2, 4); say eq_deeply \@foo, \@bar; say eq_deeply \@foo, \@baz; ' 1 0
perl -wE ' my @foo = (1, 2, 3); my @bar = (1, 2, 3); my @baz = (1, 2, 4); say @foo ~~ @bar; say @foo ~~ @baz; ' Smartmatch is experimental at -e line 5. Smartmatch is experimental at -e line 6. 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Update to smartmatch
by perldigious (Priest) on Dec 28, 2017 at 17:05 UTC |