Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$t = "t+e+s+t";
($a, $b, $c, $d) = split ("+", $t);
Generates this error:
"/+/: ?+*{} follows nothing in regexp at w.pl line 2."
I'm pretty sure I need something to interpolate the +-sign
because plain old quotes " " are not getting it done.
Thanks, RT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble with +-sign as delimiter
by vroom (His Eminence) on May 02, 2000 at 00:48 UTC | |
|
Re: Trouble with +-sign as delimiter
by btrott (Parson) on May 02, 2000 at 00:50 UTC | |
|
Re: Trouble with +-sign as delimiter
by perlmonkey (Hermit) on May 02, 2000 at 04:55 UTC |