in reply to Split on metachar
You are wanting the \Q usage within a regex/double-quoted string, which is the same as quotemeta():
# this @time = split( /\Q$char/, $_ ); # or this $char = quotemeta( '*' ); @time = split( /$char/, $_ );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Split on metachar
by EyeOpener (Scribe) on Jan 06, 2005 at 17:17 UTC |