in reply to Install on demand ?

You could implement something based on lazy.

However, if this is running on a server then are there reasons not to install all the optional dependencies for Spreadsheet::Read?