barrycarlyon has asked for the wisdom of the Perl Monks concerning the following question:
my $link = "err"; if ($q->param('title') == "Political Animal") { my $link = "pa"; } elsif ($q->param('title') == "Newslink") { my $link = "nl"; } elsif ($q->param('title') == "New Slang") { my $link = "ns"; }elsif ($q->param('title') == "Rant With Ryan") { my $link = "rwr"; } elsif ($q->param('title') == "Planet Venus") { my $link = "pv"; } elsif ($q->param('title') == "All Day Breakfast") { my $link = "adb"; } else { my $link = "err"; } # add item (tech. replace) LSRfm::Database::Podcasts->create({'title' => $q->param('title'), 'description' => $q->param('de +scription' 'short_description' => $q->par +am('descri 'picture' => $q->param('pictur +e'), 'alt' => $q->param('alt'), 'updated' => Class::Date->now( +), 'link' => $link });
and say $q->param('title') is Polictical Animal, why is it not validating as a truth? and thus Im getting $link=err?
Yours
Barry Carlyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with an IF?
by Melly (Chaplain) on Apr 05, 2006 at 10:08 UTC | |
|
Re: Help with an IF?
by bart (Canon) on Apr 05, 2006 at 10:14 UTC | |
|
Re: Help with an IF?
by McDarren (Abbot) on Apr 05, 2006 at 10:13 UTC | |
|
Re: Help with an IF?
by Samy_rio (Vicar) on Apr 05, 2006 at 10:01 UTC |