Would you like to use Perforce from within your favourite scripting language? If your favourite scripting language is Perl or Ruby, you've come to the right place. Here you'll find extensions to both languages which make running Perforce commands and processing the data they return as easy as possible.
Since both extentions are based on the Perforce API rather than on parsing the output of the command line client, they require a little more effort in terms of setup, but will pay you back in terms of speed - and you won't need to write nearly as much parsing code!
Note: In March 2008, P4Perl, and P4Ruby were adopted as supported Perforce products. The versions here, in the Perforce Public depot are deprecated, and will not be maintained further.
Download P4Perl, and P4Ruby from the Perforce FTP site.