http://www.perlmonks.org?node_id=857893

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

Hi all,

I began to use the nice module cvs http://search.cpan.org/~rsoliv/Cvs-0.07/lib/Cvs.pm.
I tried to find an option for cvs update -j, but did not find it.
Does anyone know how to make it with this module?
Alternatively, does anyone know another module, he worked with and makes the job ?

BR,
David

Replies are listed 'Best First'.
Re: cvs update -j with perl cvs module
by Khen1950fx (Canon) on Aug 29, 2010 at 10:32 UTC
    Cvs::Simple might work better for you. For update, I tried
    #!/usr/bin/perl use strict; use warnings; use Cvs::Simple; my ($cvs) = Cvs::Simple->new(); my $old = '/cvs-test'; my $new = '/cvs-test2'; $cvs->merge($old, $new, 'new_filename'); #my $result = $cvs->update();
    Note $cvs->update(): should probably be used with callbacks.
Re: cvs update -j with perl cvs module
by toolic (Bishop) on Aug 30, 2010 at 02:18 UTC
    If you can't get a module to do what you want, you could just use system:
    system 'cvs update -j' and die "Error: $?";