# Open the handle open my $handle, '|-', 'java -jar jenkins-cli.jar -s http://localhost:8080/ create-view abcd' or die "Couldn't open pipe: $!"; # Use it like a file print $handle "Hello"; # Will print "Hello" to the standard input of the java process