in reply to Re: Choosing regex delimiters
in thread Choosing regex delimiters

Which to me suggests that the shell does some processing with double-quoted strings before it reaches perl
That depends on the shell. Typically, Unix shells with do interpolation (including `` expanding) inside double quoted strings, and no interpolation inside single quoted string.

It's my understanding that you only have double quoted strings on most Windows shells (not counting shells that started life on Unix, then got ported). No idea whether they do interpolation or not.

Replies are listed 'Best First'.
Re^3: Choosing regex delimiters
by jethro (Monsignor) on Feb 06, 2009 at 17:15 UTC

    Naturally. Not knowing the shell he uses I gave him a pointer where to look. Probably should have said 'my shell' instead of 'the shell'.

    Whatever shell he is using, there should be a mechanism to avoid interpolation, often single quotes or generous use of backward slashes. Do backward slashes work on windows? I never checked.

      Whatever shell he is using, there should be a mechanism to avoid interpolation
      That's only needed if said shell actually does have interpolation ;-)