By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,903 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,903 IT Pros & Developers. It's quick & easy.

How to run Perforce command from Perl script.

P: 7
Hi,

I need to run Perforce command from perl script but it gives me error as per below:

Can't locate P4.pm in @INC (@INC contains: C:\build\software\Perl\perl5.00402\lib\site ......

my perl script is as per below:
--------------------------------------------------------------------------
#!/usr/bin/perl
use P4;

$a = p4 describe -s '122305';
print $a;
--------------------------------------------------------------------------
Please can anyone help me to resolve this.
Or
Is it possible to run Perforce command from Perl script?

Thanks
Raju
Jan 21 '10 #1
Share this Question
Share on Google+
1 Reply


P: 7
@Raju Sathliya
Hey I got the answer after googling:

Answer : we have to use system command to run the perforce Or any other tools command. Answer script is as per below.

$a = system("p4 describe -s 122305");

print $a;

Thanks to me !!!!!
Jan 21 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.