develooper Front page | perl.perl5.porters | Postings from December 2002

How tricky would it be to make my \$r = \$s DWIM?

Thread Next
From:
david nicol
Date:
December 23, 2002 19:03
Subject:
How tricky would it be to make my \$r = \$s DWIM?
Message ID:
1040698972.1127.6.camel@chicago.davidnicol.com

I was startled six years ago when I was reading the then-new blue camel
and discovered that

	my \$alias = \$value;

did not set $alias to have the same referent as $value, the
way 

	*alias = \$value;

does, but with a lexical scope instead.  

Six years later it still doesn't.  There are a handful of *Alias*
modules around that let you set that up using various syntaces,
mostly more or less direct wrappers around a tie interface.  (I wrote
one of them myself, even: tie::alias )

Could someone clue me in as to the reason for this missing piece?
Is it simply a tuit defecit or are there more complex reasons?


david nicol


-- 
David Nicol, independent consultant and contractor            312 587 2868
                                 the beat goes on: le de doot, de dum dada


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About