Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re (tilly) 1: Apocalypse 3by TheDamian (Vicar) |
on Oct 05, 2001 at 12:19 UTC ( [id://116939]=note: print w/replies, xml ) | Need Help?? |
I'm afraid := isn't the fully fledged unification operator you're hoping for. As I'll explain in
Exegesis 3, it's really just an aliasing mechanism.
So your declarative emergent $x and $y values aren't actually being declared, or emerging either. :-( In fact, you'd just get $x aliased to the (constant) result of $y+5 (which will be 5 if there's no prior assignment to $y), and then $y aliased to the (constant) result of $x-3 (which will be 2 under the previous assumption). However, as a consolation prize for having suggested human sacrifice to me (you did intend it to be a human burnt offering, didn't you???), I have now added a Data::Unification module to my ToDo list. ;-) Damian
In Section
Meditations
|
|