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; } }
In reply to Can't modify int in scalar assignment error by rkrish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |