in reply to Reg exprs
;-) Just that you have an answer ;-)
my $input="123+45"; for ($input) { tr/ +/+ /; $_= join "+ +", split; tr/ +/+ /; } print $input;
Now try to explain that!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reg exprs
by ikegami (Patriarch) on Mar 24, 2008 at 08:05 UTC | |
|
Re^2: Reg exprs
by ikegami (Patriarch) on Mar 24, 2008 at 08:00 UTC | |
by Skeeve (Parson) on Mar 24, 2008 at 08:04 UTC |