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
    it is the executable shell script the file name given as $ . set If I change the shell script file name how can I use from perl script code
      You still haven't told us the error returned by system. I'm not playing the guessing game when the information is readily available.