http://qs321.pair.com?node_id=824056

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, for a while now i've been using quite a clumsy if then else block:
my $var; if ( condition ) { $var = value1; } else { $var = value2; }
is there a better way of getting this done? it seems clumsy to me.