hi,
i am very new to perl
how to give exact pattern matching
example:
i have the data as follows
mm100
mm100-m1
mm101
mm101-m1
mm101-m2
so, i should get only
mm100
mm101
or
mm100-m1
mm101-m1
mm101-m2
if i say =~/mm-/
i am retreiveing all the values
Give me the solution pls.....
i am very new to perl
how to give exact pattern matching
example:
i have the data as follows
mm100
mm100-m1
mm101
mm101-m1
mm101-m2
so, i should get only
mm100
mm101
or
mm100-m1
mm101-m1
mm101-m2
if i say =~/mm-/
i am retreiveing all the values
Give me the solution pls.....
Comment