P4 API for Perl

P4 API for Perl is a Perl module that provides an object-oriented API to P4 Server. Using P4 API for Perl is faster than using the command-line interface in scripts, because multiple command can be executed on a single connection, and because it returns P4 Server responses as Perl hashes and arrays.

The main features are:

  • Get P4 Server data and forms in hashes and arrays.
  • Edit P4 Server forms by modifying hashes.
  • Run as many commands on a connection as required.
  • The output of commands is returned as a Perl array.
  • The elements of the array returned are strings or, where appropriate, hash references.