[p4perl] Re: Question about the Perl API

Tony Smith tony at smee.org
Thu Jan 20 04:29:01 PST 2005


Hi J-S,

Yes, I've added it for you. You'll need to download the latest development 
release of P4Perl and build it - I haven't updated the Windows installers 
yet. I'll do that shortly. Usage is simple:

 # On
 $p4->SetMaxResults( 100 );
 $p4->SetMaxScanRows( 100 );

 # Off
 $p4->SetMaxResults( 0 );
 $p4->SetMaxScanRows( 0 );

Regards,

Tony

On Wednesday 19 January 2005 15:19, Jean-Sebastien Pelletier wrote:
> Hi Tony,
>
> Could that be possible to add this kind of things in your next release of
> the Perl API ?
>
>
>
> -----Original Message-----
> From: Tony Smith [mailto:tony at perforce.com]
> Sent: 3 août 2004 05:53
> To: Jean-Sebastien Pelletier
> Subject: Re: Question about the Perl API
>
> Hi J-S,
>
> > I have a question about the Perl API vs maxResults and maxScanRows
> > limits. With the command line, there is undocumented arguments to
> > override the
>
> user
>
> > limits for those 2 values. Is there a way to make a similar thing
>
> available
>
> > with the Perl API to override those values ?
>
> Not at the moment. It's not difficult though. I could add it in easily
> enough.
> If you're in a hurry for it, it's a matter of calling:
>
>  ClientApi::SetVar( "maxResults", "10" );
>  ClientApi::SetVar( "maxScanRows", "10" );
>
> at the Perforce API level. It just needs some glue in P4Perl.
>
> Tony




More information about the p4perl mailing list