CiceroLove has asked for the wisdom of the Perl Monks concerning the following question:
My question is this: Why is the result is not printed after the script runs? Whenever I type exit on the command line, then the result is printed. It's as if I am inside a constantly running perl script. I have tried sticking an exit; on the end of my script but that does nothing. Thanks for your help.#!/usr/local/bin/perl $result = system("PATH=$PATH:/usr/local:/usr/local/bin:/usr/ccs:/usr/c +cs/bin:/usr/ucb; export PATH; bash;"); print $result . "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not quite exiting
by jwest (Friar) on Aug 24, 2001 at 23:43 UTC | |
|
Re: Not quite exiting
by dga (Hermit) on Aug 25, 2001 at 00:42 UTC |