develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [PATCH op.c op.h pp_sys.c t/op/local.t pod/perlfunc.pod] local chdir()

Thread Previous | Thread Next
Gurusamy Sarathy
August 31, 2001 17:24
Re: [PATCH op.c op.h pp_sys.c t/op/local.t pod/perlfunc.pod] local chdir()
Message ID:
On Fri, 31 Aug 2001 19:38:10 EDT, Michael G Schwern wrote:
>Here it is.  A complete, documented C<local chdir($dir)> based on
>crab's code patch.
>I plan to do similar things to single-arg select() and umask().
>Scream now or forever hold your peace.

I like neither the idea nor the implementation, unfortunately.

There is semantic complexity here, and I'd like to see how this sort
of feature will generalize to other things.  I'd much rather see
some way to hook user subroutines into the scope stack so that
you can write such things as a module (not to mention the fact that
you already can if you use DESTROY() in ways not guaranteed to be
supported in future).

op_private bits are a limited resource--using them up for such cavalier
one-off purposes is Not Good.

There, I've said it without screaming. :-)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About