Do you know where your variables are? | |
PerlMonks |
Re: Re: Re: RFC Magic::Attachby John M. Dlugosz (Monsignor) |
on Jan 21, 2003 at 21:29 UTC ( [id://228851]=note: print w/replies, xml ) | Need Help?? |
Yes, the property name should be required. In exegesis 2, it shows that the new keyword is will assign a named property to a value: $val is Found(0) is sugary syntax for something like attach (\&val, Found => 0). For looking it up, it shows treating the plain scalar value like a hash. There's got to be a longer way, or it would have problems when the value is a hash. The Apocalypse probably shows more detail, but that's already changed so don't get too, er, attached to it. I think last I heard run-time properties used the but keyword. But, Apocalypse 2 (end of the properties section) gives "a list of property ideas" that you might try using with your stuff. —John
In Section
Meditations
|
|