in reply to Re: String matching problem
in thread String matching problem

Actually its second last character not the last one... so I think

substr($string, -2, 1)

would be more appropriate

Replies are listed 'Best First'.
Re^3: String matching problem
by megaurav2002 (Monk) on May 09, 2007 at 00:55 UTC
    Actually its the last character. I used double codes to just suggest that its a string. Thanks everyone for the help!