Re: math formula substitution and evaluation
- From: paul@xxxxxxxx (Paul Johnson)
- Date: Sun, 16 Jul 2006 13:26:16 +0200
On Sun, Jul 16, 2006 at 05:48:10AM -0400, Daniel D Jones wrote:
It certainly does help. I thought about substitution but couldn't
come up with a syntax. This seems to be exactly what I was looking
for, but I'm running into a problem. Here's code which demonstrates
it:
[ ... ]
As you can see, the @values array is being shuffled to generate the
perms correctly. However, the substitution seems to always be using
the original, unshuffled values. Is it being cached somehow or what?
Try printing out @tests when you print out @values.
When you iterate through @tests, $test is an alias to the array elements
rather than a copy of them. So altering $test is changing @tests. This
is what you are seeing.
--
Paul Johnson - paul@xxxxxxxx
http://www.pjcj.net
.
- Follow-Ups:
- Re: math formula substitution and evaluation
- From: Daniel D Jones
- Re: math formula substitution and evaluation
- References:
- math formula substitution and evaluation
- From: Daniel D Jones
- Re: math formula substitution and evaluation
- From: Rob Dixon
- Re: math formula substitution and evaluation
- From: Daniel D Jones
- math formula substitution and evaluation
- Prev by Date: Re: math formula substitution and evaluation
- Next by Date: Re: math formula substitution and evaluation
- Previous by thread: Re: math formula substitution and evaluation
- Next by thread: Re: math formula substitution and evaluation
- Index(es):
Relevant Pages
|
|