Nathan Wiger wrote:
>    $pw = getpwnam('nwiger');
>    print "$pw";          # calls $pw->SCALAR, which prints 'nwiger'
>    die "Bad group" unless $pw->gid == 100;

I'm ashamed that this feature would mess with my (bad?) habit of
re-writing "$pw" to just $pw on the assumption that whoever wrote
it didn't know what the hell he was doing. Would anybody else be
caught like that?

What if it were a per-variable modifier? Something like $"var"? I
know that collides with special variables, but it seems a bit
more obvious that stringify behavior is wanted.

- Ken

Reply via email to