jason has asked for the wisdom of the Perl Monks concerning the following question:

Just to be more clear. My application is not meant to solely allow users to browse and open file on perforce. Part of my application would like users to be able to point to perforce files which i will open and process in some way. Regards, Jason Hi All, I am wondering if there is an interface in perl/tk to perforce. I am writing a GUI application that I'd like to be able to read files from perforce (and allow users to browse perforce files and select the ones they would like to open). I.e. I don't want users to have to sync out files and open them for edit prior to running my GUI application. I hope I have explained this well enough. Regards, Jason

Replies are listed 'Best First'.
Re: perl/tk & perforce
by liverpole (Monsignor) on Jan 31, 2007 at 20:01 UTC
    Hi jason,

    I don't know offhand if there's already something which exists to do that.  I did a (not-at-all comprehensive) search for it myself, and couldn't find anything relevant.

    But, have you looked at P4Perl at all?

    According to the documentation:

    [P4Perl is] a Perl module that allows you to execute Perforce commands without leaving Perl space and to get the results in Perl Arrays and H +ashes.
    It seems to me like you could combine that with Perl/Tk fairly easily, although you would have to write the Tk part of it yourself.

    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
Re: perl/tk & perforce
by tadamo (Novice) on Jan 31, 2007 at 20:42 UTC
    Did you take a look at p4v (Perforce Visual Client) or P4Web (Perforce Web Client)? They may already have the functionality you're looking for.