StackOverflow Questions for Tag: smartmatch

Evan Carroll
Evan Carroll

Reputation: 1

Perl 5.20 and the fate of smart matching and given-when

Score: 62

Views: 14499

Answers: 3

Read More
chenyf
chenyf

Reputation: 5058

Why does multiple use of `<( )>` token within `comb` not behave as expected?

Score: 9

Views: 126

Answers: 3

Read More
Ωmega
Ωmega

Reputation: 43673

The smartmatch operator is not working as expected

Score: 3

Views: 126

Answers: 2

Read More
jakar
jakar

Reputation: 1701

Signatures smartmatching misunderstanding

Score: 8

Views: 132

Answers: 1

Read More
Victor.H
Victor.H

Reputation: 157

How to make a column value as an number range for smartmatch

Score: 0

Views: 71

Answers: 1

Read More
CW Holeman II
CW Holeman II

Reputation: 4961

What does " ~~ " mean in Perl?

Score: 23

Views: 24032

Answers: 4

Read More
Georg
Georg

Reputation: 1098

Why is this regex from a text file not working with smartmatch?

Score: 0

Views: 142

Answers: 3

Read More
Eugene Yarmash
Eugene Yarmash

Reputation: 149813

Is ~~ a short-circuit operator?

Score: 3

Views: 376

Answers: 2

Read More
Pablo Marin-Garcia
Pablo Marin-Garcia

Reputation: 4251

Can I use smart matching, ~~, in Test::More's cmp_ok?

Score: 1

Views: 548

Answers: 3

Read More
askucins
askucins

Reputation: 93

Why does smartmatch return true when comparing array slices that should be different?

Score: 8

Views: 362

Answers: 3

Read More
Starfish
Starfish

Reputation: 707

How can I check that a string matches all patterns in an array using smartmatch?

Score: 4

Views: 111

Answers: 1

Read More
Qiang Li
Qiang Li

Reputation: 10855

Why does @array ~~ LIST return false even though @array contains the same elements as LIST?

Score: 4

Views: 1251

Answers: 3

Read More
Burzum619
Burzum619

Reputation: 143

Why does smartmatch not work when dereferencing an arrayref on the left-hand side?

Score: 2

Views: 167

Answers: 1

Read More
lzc
lzc

Reputation: 949

Does Perl's smartmatch work against arrays (or arrayrefs) of mixed strings and compiled regexes?

Score: 0

Views: 254

Answers: 2

Read More
aidan
aidan

Reputation: 9576

Why does smartmatch return a different value when I use the range operator on the righthand side instead of an array?

Score: 1

Views: 161

Answers: 1

Read More
Rekr
Rekr

Reputation: 35

Why does smartmatch against keys %h fail and give an "Argument isn't numeric" warning?

Score: 1

Views: 839

Answers: 1

Read More
abra
abra

Reputation: 575

Why does smartmatch return false when I match against a regex containing slashes?

Score: 7

Views: 401

Answers: 1

Read More
d.k
d.k

Reputation: 4456

Why is @array ~~ $number different from @array == $number?

Score: 3

Views: 257

Answers: 2

Read More
Ikram Hawramani
Ikram Hawramani

Reputation: 157

Why does smartmatch return different values depending on the order of the operands?

Score: 9

Views: 574

Answers: 4

Read More
Karel Bílek
Karel Bílek

Reputation: 37658

How fast is Perl's smartmatch operator when searching for a scalar in an array?

Score: 18

Views: 5275

Answers: 3

Read More
PreviousPage 1Next