in reply to RegExp error PLEASE HELP!
WOULD YOU PLEASE STOP SHOUTING? WE ARE NOT YET DEAF!
split expects a regular expression as its first parameter. + has a special meaning (quantifier) in regular expressions, you have to escape it.
A nasty trap of split is that you can pass the RegExp as string. Better use // or qr() for that, so your intention becomes more clear. And to escape the +, either prefix it with a backslash or make it a one-character character class:
my @array=split /\+/,$someString;
or
my @array=split /[+]/,$someString;
Alexander
|
|---|