Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Hidden Secrets of PERLby Hue-Bond (Priest) |
on Oct 12, 2006 at 10:24 UTC ( [id://577797]=note: print w/replies, xml ) | Need Help?? |
My $qm = '?,'x scalar(@allsearchterms); The argument at the right of x is in scalar context, so no need to call scalar. Besides it, you can use join to get rid of the chop: my $qm = join ',', ('?') x @allsearchterms;--
In Section
Seekers of Perl Wisdom
|
|