L
Liang
hi, I'm a newbie to perl 
I want to parse this kind of string:
/main/abcd/efgh/hhh/3
to get the rightmost string that is enclosed in '/'. In this case, it's
'hhh'.
So, how to do this in Perl? something as '=~ /\/(.*)\//' ?
or use index()?
Thanks in advance,
Liang
I want to parse this kind of string:
/main/abcd/efgh/hhh/3
to get the rightmost string that is enclosed in '/'. In this case, it's
'hhh'.
So, how to do this in Perl? something as '=~ /\/(.*)\//' ?
or use index()?
Thanks in advance,
Liang