[SPAM] - Re: [p4perl] Help for a beginner - Sender is forged (SPF Fail)
Tony Smith
tony@smee.org
Thu, 23 Dec 2004 19:23:07 +0000
Hi Craig,
> I see your point and thanks. And I download you new file and installed
> it. However, I gave it a whurl with either of these lines:
>
> my $chglist = $p4->Run
> ("changes","-t","@2004/12/20:1:08,@2004/12/21:1:07");
>
> and this:
>
> my $chglist = $p4->Run ("changes","-t",$param);
>
> where $param = "@2004/12/20:1:08,@2004/12/21:1:07"
>
> still does not work. The parameter passing seems to fail. Also when I
> ran this below:
Strange. Could you call
$p4->DebugLevel( 2 );
before you call $p4->Connect() and send me the output. That should shed some
light on it.
> <first P4 authenticate to Perforce -- then>
> $p4->Connect() or die ("Failed to connect to Perforce Server");
> my $info = $p4->Run ("info");
> foreach $a (@$info){
> print "$a\n";
> }
> $p4->Edit("test.txt") or die ("Failed to edit file");
> $p4->Disconnect();
<snip>
> As you can see the file test.txt is located in c:\src and it has c:\src
> as the current directory. Any thoughts
$p4->Edit() doesn't return a boolean so you can't use it like that. You need
to check the $p4->Errors() and $p4->Warnings() arrays to see if the command
worked.
Tony