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/, $_ );
In reply to Re: Split on metachar
by saskaqueer
in thread Split on metachar
by EyeOpener
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |