[p4perl] RE: Help for a beginner

Tony Smith tony@smee.org
Wed, 22 Dec 2004 09:19:57 +0000


Hi John,

> Thanks for getting back to me on this. I have downloaded P4perl from
> http://public.perforce.com/guest/tony_smith/perforce/API/Perl/
>
> According  to P4.pm,
>
> $VERSION = qq( 1.3550 );

That version of P4.pm didn't support the Connect() method. At that time 
(August last year according to the change number) P4::Init() was the only way 
of initiating a connection to the Perforce server. 

So, if you use 

 $p4->Init() or die( "Failed to connect to server" );

you should be OK. Alternatively, grab the latest (3.x) build and you can use 
Connect() instead.

Regards,

Tony