Monday, 19 December 2022

How many ways to compare two strings in perl?

Method 1:

cmp - Compare

Method 2:

eq - Equal to

Method 3:

ne - Not-Equal to

Method 4:

Lt - Less than

Method 5:

le - Less than or equal to

Method 6:

gt - Greater than

Method 7:

ge - Greater than or equal to

Labels: , , , , , ,