in reply to specifying STDIN for backticks

You might also want to look into IPC::Open2 and IPC::Open3, which allow you a lot more flexibility in terms of handling stdin, stdout, and stderr (with Open3) for other programs.
--
Mike