The stupid question is the question not asked | |
PerlMonks |
Re: Conditional statements for templateby choroba (Cardinal) |
on Mar 20, 2014 at 10:24 UTC ( [id://1079061]=note: print w/replies, xml ) | Need Help?? |
You are missing a dollar sign before the variable name.
You cannot use if in an expression, but you can use the Conditional Operator (aka the Ternary operator):
Update: code formatting.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|