alikim has asked for the wisdom of the Perl Monks concerning the following question:
It executes another.pl but the print statement is never reached as the 'exec' stops running the programm. So I changed the programm like this:#!/usr/bin/perl -w if(condition){ exec '/usr/.../another.pl'; } print "Location: http://test/ \n\n";
This one perfoms 'Location' but 'exec' is never reached and I don't understand why. The condition here is always true.#!/usr/bin/perl -w print "Location: http://test/ \n\n"; if(condition){ exec '/usr/.../another.pl'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'exec' & 'Location' problem
by Abigail-II (Bishop) on Sep 12, 2003 at 09:13 UTC | |
|
Re: 'exec' & 'Location' problem
by Roger (Parson) on Sep 12, 2003 at 10:23 UTC | |
by Abigail-II (Bishop) on Sep 12, 2003 at 10:37 UTC | |
by Roger (Parson) on Sep 12, 2003 at 13:12 UTC | |
by hmerrill (Friar) on Sep 12, 2003 at 12:44 UTC |