What's wrong with the following expression (which doesn't work):In my eyes this is completely equivalent to
if (defined $IN->param('p')) {
$p = $IN->param('p');
}
else {
$a->{p};
}which works...
Ivan
-----
Iyengar Yoga Resources / GT Plugins
Code:
my $p = (defined $IN->param('p')) ? $IN->param('p') : $a->{p};Code:
my $p; if (defined $IN->param('p')) {
$p = $IN->param('p');
}
else {
$a->{p};
}
Ivan
-----
Iyengar Yoga Resources / GT Plugins