in reply to have to Extract substring after '/' character

The best tool here is probably a regular expression. The tricks in this particular case are escaping the slash with a backslash (\/), Using character classes (particularly . or \S), and Extracting matches. Post some code once you've read the linked material and we'll help you debug. You should find the section Simple word matching particularly informative.

Replies are listed 'Best First'.
Re^2: have to Extract substring after '/' character
by johngg (Canon) on Apr 04, 2011 at 15:16 UTC
    The tricks in this particular case are escaping the slash with a backslash (\/), ...

    Even better, choose a different delimiter. Instead of

    if ( $path =~ /\/path\/to\/file/ ) ...

    use

    if ( $path =~ m{/path/to/file} ) ...

    I hope this is of interest.

    Cheers,

    JohnGG