README #5

  • //
  • guest/
  • tony_smith/
  • perforce/
  • API/
  • P4-Client/
  • README
  • Commits
# Change User Description Committed
#5 1011 Tony Smith Moved Perl API stuff one level down to make way for upcoming
Ruby interface.
#4 929 Tony Smith Add support for form parsing to Perl API.
Allows Perforce
specs (change, client, user etc.) to be parsed by the API
and returned as Perl hashes rather than strings which must
be parsed by the user.

P4 module also has some new methods which make it easy to use
this feature. Sample code:

-------------------
use P4;

my $p4 = new P4;
$p4->ParseForms();
$p4->Init() or die( "Can't connect to Perforce" );

$p4->Edit( "filename" );
my $change = p4->GetChange();
$change->{ 'Description' } = "Some text";
$p4->SubmitSpec( $change );
print( $p4->ErrorCount() ? "Submit failed\n" : "Submit OK\n" );
-------------------
#3 638 Tony Smith Add a note on the __eh_pc problem to the README file
#2 576 Tony Smith Add an example script showing how to use the Perl API.
#1 549 Tony Smith Renamed the working directory to P4-Client as I've discovered
that MakeMaker is quite happy with that and doesn't require a
version number in the directory name.
//guest/tony_smith/perforce/API/P4-Client-0.51/README
#1 527 Tony Smith Release P4::Client version 0.51 with Win32 support
//guest/tony_smith/perforce/API/P4-Client-0.50/README
#2 511 Tony Smith Completed the process of renaming P4::ClientApi to P4::Client
#1 509 Tony Smith Renamed P4::ClientApi to P4::Client as it's more friendly and
that's what it's called on CPAN.  Subsequent changes include
the actual renaming inside the code, this just creates the
branch
//guest/tony_smith/perforce/API/P4-ClientApi-0.05/README
#1 501 Tony Smith First publicly released version of the Perl interface to the
Perforce API.