sub function1 { my ($var) = @_? @_:'no arg'; print qq{$var\n}; } function1(0); function1('0'); function1('zero'); function1();
Output: 0 0 zero no arg
In reply to Re: How to assign string "0" in short circuit
by poolpi
in thread How to assign string "0" in short circuit
by nikhil.patil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |