# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#9 | 1011 | Tony Smith |
Moved Perl API stuff one level down to make way for upcoming Ruby interface. |
||
#8 | 982 | Tony Smith |
A couple of minor fixes. test.pl was choking on test 6 as ParseForms had not been called, and Run() now correctly returns an empty list in array context rather than returning undef which was confusing. |
||
#7 | 967 | Tony Smith | Online doc update | ||
#6 | 961 | Tony Smith | Current build of P4 - version 0.961 | ||
#5 | 960 | Tony Smith |
Misc changes. Added an example.pl file with sample code. Also Added the PPD file to the manifest (duh!). P4::Run() now returns an array reference instead of a formatted string when used in scalar context where more than one result is returned. Also renamed the shortcut GetXXX and SetXXX methods to be FetchXXX and SaveXXX because GetClient() and SetClient() we already defined by P4::Client. |
||
#4 | 931 | Tony Smith | Latest (931) builds of P4::Client and P4 | ||
#3 | 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" ); ------------------- |
||
#2 | 925 | Tony Smith | Version number for P4.pm to 0.925 | ||
#1 | 922 | Tony Smith |
First crack at a much simpler perl interface. Just wraps up the P4::Client and P4::UI classes in an easier to use interface returning the output to the caller in Array or Scalar context as they request it. |