[ABE.pm] Reference fun

Ricardo SIGNES perl.abe at rjbs.manxome.org
Sat Nov 10 17:52:37 PST 2007


* "Faber J. Fedor" <faber at linuxnj.com> [2007-11-10T14:12:53]
> On 09/11/07 21:06 -0500, Ricardo SIGNES wrote:
> > Once you're using a tied variable, all bets are off. 
> 
> Ohhh-kaaay.  Why?  Isn't a hash a hash, even if it's tied?

A tied variable is only sorta kinda like the thing it's supposed to be.  They
should generally be used only as a novelty.

> > You can't put a hash directly into an array element, only a reference to it.
> 
> Yeah, well the reference didn't work, so I tried the has h itself.

My point is that this will never, ever work, and is never work trying. :)

> After thinking through my project (how to edit an ini file via a
> webform), I won't be needing the YAML stuff anyway.  And I think I'll
> stay away from tie-d vairables (except for Tie::File) from now on.

Good idea.  (Tie::File does seem to be a pretty righteous use of tying.)

-- 
rjbs


More information about the ABE-pm mailing list