use Link; my $var_o = tie my $var,"Link","http://somesite.com"; $var = "http://anothersite.com"; $var_o->print_method; print $var;