in reply to a timid approach to parsing arithmetic expressions in perl
I was testing something else, when I discovered an expression that generates tons of warnings:
my $exp = 3-(4+5);
I'd also be interested in seeing a right-associative operator added.
my $exp = 4**3**2; # = 4**9 = 262144
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: a timid approach to parsing arithmetic expressions in perl
by spx2 (Deacon) on Jul 26, 2008 at 15:25 UTC | |
by ikegami (Patriarch) on Jul 27, 2008 at 07:57 UTC | |
by spx2 (Deacon) on Jul 26, 2008 at 16:02 UTC |