in reply to Re: problem with split function
in thread problem with split function

YES !! It works !! quotemeta.. I could have been searchin' for this tip for years... thank you very much for your pretty fast and right answer ! that's what I call reactivity ! you rock !!

Replies are listed 'Best First'.
Re: Re: Re: problem with split function
by diotalevi (Canon) on Oct 20, 2003 at 19:23 UTC

    And to make that even easier, use \Q in your regex to invoke quotemeta inline. No need to alter $delimiter or use an intermediary variable.

    split /\Q$delimiter/, ...