in reply to showing the error ,Can't modify concatenation (.) or string in scalar assignment

i have changed the code to , my $check_usr = $cgi->param("$chck_.$usr"); but after checking the checkbox and on printing it is not showing any value. what may be reason???

  • Comment on Re: showing the error ,Can't modify concatenation (.) or string in scalar assignment

Replies are listed 'Best First'.
Re^2: showing the error ,Can't modify concatenation (.) or string in scalar assignment
by DrHyde (Prior) on Jul 18, 2013 at 09:55 UTC
    Probably because there's no CGI parameter called "check.whatever". You need to get rid of the dot, and then learn how variables interpolate in strings. Read perldata.