NAME

Tie::Alias - create aliases for lexicals in pure perl

SYNOPSIS

use Tie::Alias;
my $scalar = 'sad puppy';
tie my $alias, Tie::Alias => \$scalar;  # just like local *alias = \$scalar
$alias = 'happy puppy';
print $scalar,"\n";	# prints happy puppy

ABSTRACT

create aliases to lexicals thrugh a tie scalar interface

DESCRIPTION

the Tie::Alias TIESCALAR function takes one argument, which is a reference
to the scalar which is to be aliased.  In case the scalar is already tied
using Tie::Alias or something else that has a defined C<isAlias> method
that returns a true value, the target scalar will get tied to 

Currently Tie::Alias only works for scalars.  Adding support for
all tieable types will be trivial.  In fact, Tie::Alias has a rudimentary
TIEARRAY, TIEHASH, and TIEHANDLE methods in it that want to delegate 
to Tie::Alias::TIEinterface in case those classes ever spring into existence.

EXPORT

None.

SEE ALSO

perltie

AUTHOR

david nicol

COPYRIGHT AND LICENSE

Copyright 2002 by david nicol / tipjar LLC

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.