Super easy question for you guys.
I'm looking for a 'one-liner' that will achieve the following:
- Check if param{'name'} equals "bozo" only is param{'name'} is not null (is defined).
I'm looking for a 'one-liner' that will achieve the following:
- Check if param{'name'} equals "bozo" only is param{'name'} is not null (is defined).
Code:
if ($param{'name'} ne '' && $param{'name'} eq 'bozo') {
print "foo";
}