4 messages in com.perforce.perforce-user[p4] p4 -G and perl| From | Sent On | Attachments |
|---|---|---|
| CHARLES HART, BLOOMBERG/ 499 PARK | 03 Dec 2002 14:52 | |
| Jeremy S. Russell | 03 Dec 2002 15:17 | |
| chris patti | 03 Dec 2002 15:48 | |
| Robert Cowham | 04 Dec 2002 04:41 |
| Subject: | [p4] p4 -G and perl![]() |
|---|---|
| From: | chris patti (cpa...@atg.com) |
| Date: | 12/03/2002 03:48:13 PM |
| List: | com.perforce.perforce-user |
On Tue, 3 Dec 2002, Jeremy S. Russell wrote:
If you are doing Perl, you may want to take a look at the Perforce Perl API:
http://www.perforce.com/perforce/loadsupp.html#api
I have been using it for about a year and think it is great! It has sure eased Perforce script development for me.
-----*----------------*----- -Jeremy
One advantage -G has over this is that it doesn't require a custom built, dynamically linked to Perforce's .so's version of Perl (Which can be awkward in production and problematic under win32).
I wish there were a way to make -G be language independent / insensitive. XML seems like a natural solution to me (Why couldn't the Perforce server(client?) optionally encode responses using lightweight XML? I may be daydreaming here).
There are other options - even regularizing the output of the -s option (the things the Perforce server categorizes as 'info' versus 'error' boggle the mind :) would be a godsend for cross platform scripters.
I keep thinking that Java could utilize Jython's marshal implementation to parse -G 'natively' but have never had the time to properly follow it up.
-Chris
-------------------------------------------------------------------- Chris Patti \ Art Technology Group \ 617-386-1649 \ cpatti at atg.com
--------------------------------------------------------------------




