http://www.perlmonks.org?node_id=368709


in reply to rtfm

You should really use the list form of system (or exec as grinder points out).
system('man', $bins[int(rand(@bins))]);
It will avoid calling a shell to handle parsing the options to the external program saving you the trouble of making sure no one has named a file something that may cause your system trouble.