I am learning the Perl code. I also want to use the beauty of the perl.
I can write like this
$var or $var = 30;But in this case how can I write the code using or
Or is there any smart way to write this
if (undef $var) { $x = 40; } else { $x = 50; }
In reply to Need clean code by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |