perl-Cvs woes

  • Thread starter noeldamonmiller
  • Start date
N

noeldamonmiller

All,


I'm trying to simply print a cvs status command and it isn't
working:

Here's the error

Can't modify constant item in scalar assignment at
script/report_revision.pl line 36, near ");"
BEGIN failed--compilation aborted at -e line 835 (#1)
(F) You aren't allowed to assign to the item indicated, or
otherwise try

to change it, such as with an auto-increment.

Uncaught exception from user code:
Can't modify constant item in scalar assignment at
script/report_revision.pl line 36, near ");"
BEGIN failed--compilation aborted at -e line 835.

Here's the script so far:

use Cvs;
use diagnostics;
use Carp;
use warnings;

# We plan to use PAR and archive all modules, so no worries about
having
# a full compliment of modules. Perhaps we'll even link perl and not
have
# to package it either

my $cvs = new Cvs
(
'/tmp/cvs/java/com/random',
cvsroot => '/usr/local/cvs',
password => 'secret'
) or die $Cvs::ERROR;

#my $status = $cvs->status();
#print "$REPORT_results\n";

Cvs::Result::StatusItem = $cvs->status();
Cvs::Result::StatusList = $cvs->status();

$cvs->logout();


I read the docs for Cvs, just don't get it..

Thanks for your help in advance.

Noel
 
T

Tad McClellan

Can't modify constant item in scalar assignment at
script/report_revision.pl line 36, near ");" ^^^^^^^
^^^^^^^

Here's the script so far:


[snip _25_ line program, with line numbers broken by word-wrap]


Show the real code if you expect real help.
 
N

noeldamonmiller

ok, we take out the comments and get

use Cvs;
use diagnostics;
use Carp;
use warnings;

my $cvs = new Cvs
(
'/tmp/cvs/java/com/random',
cvsroot => '/usr/local/cvs',
password => 'secret'
) or die $Cvs::ERROR;

#my $status = $cvs->status();
#print "$REPORT_results\n";

Cvs::Result::StatusItem = $cvs->status();
Cvs::Result::StatusList = $cvs->status();

$cvs->logout();
 
T

Tintin

ok, we take out the comments and get

use Cvs;
use diagnostics;
use Carp;
use warnings;

my $cvs = new Cvs
(
'/tmp/cvs/java/com/random',
cvsroot => '/usr/local/cvs',
password => 'secret'
) or die $Cvs::ERROR;

#my $status = $cvs->status();
#print "$REPORT_results\n";

Cvs::Result::StatusItem = $cvs->status();
Cvs::Result::StatusList = $cvs->status();

$cvs->logout();

That's very nice. Would you like an award for it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top