true has asked for the wisdom of the Perl Monks concerning the following question:
Up till now i've written routines that split each equation by sign and solves from left to right. Wondering if there is a faster way. Thanks for reading.my $var = "(2+2)"; my $result = (2+2); print $result;
jtrue
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there a Variable to literal expression shortcut?
by broquaint (Abbot) on May 29, 2003 at 09:24 UTC | |
|
Re: Is there a Variable to literal expression shortcut?
by jepri (Parson) on May 29, 2003 at 08:37 UTC | |
|
Re: Is there a Variable to literal expression shortcut?
by shotgunefx (Parson) on May 29, 2003 at 09:10 UTC | |
|
Re: Is there a Variable to literal expression shortcut?
by Bilbo (Pilgrim) on May 29, 2003 at 09:14 UTC | |
|
Re: Is there a Variable to literal expression shortcut?
by Enlil (Parson) on May 29, 2003 at 08:40 UTC | |
|
Re: Is there a Variable to literal expression shortcut?
by eyepopslikeamosquito (Archbishop) on May 29, 2003 at 08:38 UTC |