in reply to Run shell script in perl
You have a problem and you don't even check what error you got? See the docs for how to find out.
. set means "execute the commands in file 'set' in the current process".
system("set") means "execute program or script 'set'".
There are differences. Most relevant is probably the lack of requirement for set to be executable in the former.
By the way, set is an awful name because a sh/bash/... command has that same name.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Run shell script in perl
by sandy1028 (Sexton) on Feb 26, 2009 at 06:37 UTC | |
by Anonymous Monk on Feb 26, 2009 at 07:22 UTC | |
by ikegami (Patriarch) on Feb 26, 2009 at 14:48 UTC |