use strict;use warnings;tie my$t,'A';$t=".rekcah lreP rehtona tsuJ"; print while$_=$t;package A;sub TIESCALAR{bless\my$s,shift}sub STORE{ ${$_[0]}=$_[1]}sub FETCH{chop${$_[0]}}
As an added bonus, this one runs fine under strictures and warnings.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |