On 8/7/01 11:05 AM, Jeff 'japhy/Marillion' Pinyan wrote:
> You can use my DynScalar module from CPAN.
On 8/7/01 11:36 AM, Bob Showalter wrote:
> In addition to Jeff's suggestions,
Thank you both! Although it wasn't real, the example I gave modeled what I'm
trying to do quite precicely, and yo
> -Original Message-
> From: Michael Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 2:00 PM
> To: [EMAIL PROTECTED]
> Subject: Variable Recalculation
>
>
> Is there any way to recalculate a certain variable when
> another variable's
On Aug 7, Michael Kelly said:
>Is there any way to recalculate a certain variable when another variable's
>value changes? For instance if,
>
>$a = 5;
>$b = $a * 4;
>$a = 10;
You can use my DynScalar module from CPAN.
use DynScalar;
$x = 5;
$y = dynamic { $x * 4 };
print "$x * 4 = $y\n"
Is there any way to recalculate a certain variable when another variable's
value changes? For instance if,
$a = 5;
$b = $a * 4;
$a = 10;
At the end of that, $a will be 10, but $b will still be 20 (5 * 4). Is
there any way, short of manually recalculating $b every time $a might
change, to have $