rkrish has asked for the wisdom of the Perl Monks concerning the following question:
I have code snippet which while compiling giving 'Can't modify int in scalar assignment' error.Am i doing anything wrong here? I'm getting the error at line :'foreach (@accums)'
my code is :
my $getAccumsForAcct = qq{ select distinct usage_acum_seq_nbr fr +om svc_price }; my $getAccums = $lda->prepare($getAccumsForAcct); my $sbscrp_id='0032581923'; if(defined($getAccums)) { $getAccums->execute(); while (my @accums = $getAccums->fetchrow_array() ) { } foreach (@accums) { int returnCode = SUCCESS; my $xmlFile = "GetUsgSummary_" . $acct_nbr . $_.". +xml"; createXmlForUpd( $xmlFile, $acct_nbr,$sbscrp_id ); $returnCode = invokeServer( $acct_nbr , $xmlFi +le ); if ( $returnCode != SUCCESS ) { return $return +Code; } return $returnCode; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can't modify int in scalar assignment error
by NetWallah (Canon) on Dec 19, 2012 at 05:25 UTC | |
by rkrish (Acolyte) on Dec 19, 2012 at 05:51 UTC | |
by NetWallah (Canon) on Dec 19, 2012 at 06:30 UTC | |
by roboticus (Chancellor) on Dec 19, 2012 at 13:05 UTC | |
by 2teez (Vicar) on Dec 19, 2012 at 06:16 UTC | |
Re: Can't modify int in scalar assignment error
by jwkrahn (Abbot) on Dec 19, 2012 at 06:38 UTC |
Back to
Seekers of Perl Wisdom