How do I make sure that a string value "0" is assigned to $var when the argument passed to the function is 0?sub function1 { $var = shift || "No argument"; print $var . "\n"; }
In reply to How to assign string "0" in short circuit by nikhil.patil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |