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.
In reply to Re: Run shell script in perl
by ikegami
in thread Run shell script in perl
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |