in reply to Re: Detecting whether forward slash is present in string
in thread Detecting whether forward slash is present in string

chop reverse doesn't work; try $beg = substr($string2,0,1,'');  (Untested, of course :)

Replies are listed 'Best First'.
Re^3: Detecting whether forward slash is present in string
by Limbic~Region (Chancellor) on Sep 13, 2004 at 22:48 UTC
    ysth,
    I am glad I put the should also work disclaimer in there ;-)

    You are of course correct. Lesson learned - always state your code is untested if you are rushing off to have dinner with your wife.

    Cheers - L~R