in reply to Re: local scoped cwd
in thread local scoped cwd

If you aren't going to use the blessed var, why bother with the overhead and size of a hash? Why not:
sub TIESCALAR {bless \(my $dummy) => shift}

Replies are listed 'Best First'.
Re: Re: Re: local scoped cwd
by Anonymous Monk on Jun 28, 2001 at 07:42 UTC

    I guess I was just playing golf. :)

    How well would { bless \$_ => shift } work?