Re: Env::Reject

2001-01-31 Thread John Porter
David Boyce wrote: > At 11:30 AM 1/31/01 -0500, John Porter wrote: > > >Huh? exec() works! At least on some versions of Windows. > > It "works" in the sense that it passes the arguments to the exec() in the > Windows CRTL. Unfortunately the underlying Windows exec has > non-traditional, to p

Re: Env::Reject

2001-01-31 Thread David Boyce
At 11:30 AM 1/31/01 -0500, John Porter wrote: >Huh? exec() works! At least on some versions of Windows. It "works" in the sense that it passes the arguments to the exec() in the Windows CRTL. Unfortunately the underlying Windows exec has non-traditional, to put it politely, semantics. It beh

Re: Env::Reject

2001-01-31 Thread Nicholas Clark
> At 11:00 -0500 01.31.2001, David Boyce wrote: > >On UNIX it's straightforward: "exec $^X ,$0, @ARGV" out of a BEGIN clause. Linux isn't UNIX: $ cat argv.pl #!/usr/bin/perl -w print "$^X\n"; print "$0\n"; $ ./argv.pl perl ./argv.pl where's perl? :-( [and anyone who assumes that perl is the

Re: Env::Reject

2001-01-31 Thread Chris Nandor
At 11:00 -0500 01.31.2001, David Boyce wrote: >At 07:50 AM 1/31/01 -0500, Chris Nandor wrote: > >>I've never really thought about this before, but it is an interesting >>problem and solution. What are the issues involved in "re-executing" a >>script? How is that re-execution done? > >On UNIX it'

Re: Env::Reject

2001-01-31 Thread John Porter
David Boyce wrote: > > How is that re-execution done? > > On UNIX it's straightforward: "exec $^X ,$0, @ARGV" out of a BEGIN clause. > On Windows I do "exit system $^X ,$0, @ARGV", Huh? exec() works! At least on some versions of Windows. > though since Perl's system() > always exposes its

Re: Env::Reject

2001-01-31 Thread David Boyce
At 07:50 AM 1/31/01 -0500, Chris Nandor wrote: >I've never really thought about this before, but it is an interesting >problem and solution. What are the issues involved in "re-executing" a >script? How is that re-execution done? On UNIX it's straightforward: "exec $^X ,$0, @ARGV" out of a BEG

Re: Env::Reject

2001-01-31 Thread Chris Nandor
At 21:34 -0500 01.30.2001, David Boyce wrote: >I just threw together a little module currently named Env::Reject and would >like a review of the name and concept. In particular, if there's a >different/better solution than re-execing with a depleted environment I'd >appreciate hearing about it. I'