If you never use $bar again, then I might do:
- tyemy $foo= do { my $bar= localtime; $bar ? "$bar hello" : "FAILED!"; };
In reply to Re: Variable scope in ternary ?: operator not propagating? (do)
by tye
in thread Variable scope in ternary ?: operator not propagating?
by JayBonci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |