in reply to Running a command from a text file

Have you looked at system? How did it fail to work for you?

I suggest doing something like

my $command= "/usr/bin/bash -c 'do $some_file'"; system( $command ) == 0 or die "Couldn't launch '$command': $! / $?";