perl -Mojo -E 'p("http://localhost:3000" => form => {Input_Type => "XML", Input_File => {file => "d:/xml/test.xml"}})'
File d:/xml/test.xml
will be uploaded to server which listen connections on localhost:3000
(Source)
In this example:
-Mmodule
executes use module;
before executing your program
-E commandline
is used to enter one line of program
If you have no ojo
module you can use cpanm ojo
command to install it
To read more about how to run perl use perldoc perlrun
command or read here