in reply to split $c

The reason is because "|" is a regex metacharacter. Do:
$opt{c} = quotemeta $opt{c};
instead, before you use it in a regex.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: split $c
by Anonymous Monk on Dec 08, 2001 at 02:30 UTC
    Thanks!:)