Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Can't modify int in scalar assignment error

by jwkrahn (Monsignor)
on Dec 19, 2012 at 06:38 UTC ( #1009512=note: print w/replies, xml ) Need Help??

in reply to Can't modify int in scalar assignment error

int returnCode = SUCCESS;

That looks like C code, not Perl code.    Perhaps you meant:

my $returnCode = SUCCESS;

if ( $returnCode != SUCCESS ) { return $return +Code; } return $returnCode;

That makes little sense.    You are testing $returnCode but you return $returnCode whether it equals SUCCESS or not.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009512]
[Corion]: Oh yay. $project has faffed around for 2 years and now pushed a hasty 2 weeks solution into production without telling me. Of course, the new data also needs changes on my side to be processed correctly. Now they try to raise incidents against my ...
[Corion]: ... input systems to make the change outside of the organized project because I don't have ressources for the project to make the change.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-08-17 09:08 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (285 votes). Check out past polls.