in reply to If statement based on Radio Button Values
That is not perl code...
if (...){ .... } elsif (...){ ... }
...is a proper if/else if statement. Also, in perl5, variables aren't objects (except in certain situations), and they certainly can't have methods called on them in that way.
It would be prudent to show us the error message(s). I doubt the following will fix your problem, but this code is at least proper Perl:
my $subject; if ($businessCall eq "Yes_bus"){ $subject = "Branch Manager Business Call"; } elsif ($businessCall eq "No_bus"){ $subject = "Merchant Referral"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: If statement based on Radio Button Values
by jaacmmason (Acolyte) on Nov 04, 2015 at 22:42 UTC | |
by hippo (Archbishop) on Nov 04, 2015 at 23:22 UTC | |
by tangent (Parson) on Nov 04, 2015 at 22:52 UTC |