in reply to Re: Pls explain this syntax
in thread Pls explain this syntax

I am still having confusion about my last question. We can use any delimiter / or #. s#^https://#http://# ; in this syntax # is used instead of /

s#./##s; in this syntax, it looks that delimiter is #, but can we use different separator between two strings than the delimitor. It looks the separator is "/".

Pls explain

Replies are listed 'Best First'.
Re^3: Pls explain this syntax
by ikegami (Patriarch) on Feb 23, 2009 at 03:53 UTC
    The character (space excepted) that immediately follows the "s" is the delimiter.

    It looks the separator is "/".

    No, it's "#", since that's the character that follows the "s". "./" is the pattern, "" is the replacement.