in reply to Install and then load missing modules with in a script
I see two issues:
- You're looking for eval "require $mod";. See perldoc -f require for more info.
- Thinko: after system() call (whose return value you should check, btw), you need to require the module you just installed.