Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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.


Comment on Re: Can't modify int in scalar assignment error
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009512]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2015-07-07 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (89 votes), past polls