Simpler than scalar(): ? '*'x8 : ' 'x8
Randomly, you will not see this problem in perl6: in it the operator x treats its LHS as a scalar and the analagous operator xx treats its LHS as a list.
In reply to Re: On Solving a Simple Problem, and Appreciating the Complexity of Perl
by ayrnieu
in thread On Solving a Simple Problem, and Appreciating the Complexity of Perl
by liverpole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |