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


in reply to -type: -f: unknown type

The simple answer is surely that it should be
qx{find $filepath_root -name 'main.xml' -type f}
Note the removal of the '-' before the 'f'. There may be better solutions than making a call to the shell though.....