in reply to What I Most Recently Learned in Perl, But Should Have Already Known
But didn't realize I could also do this:my $indent = ' 'x5; # Yields ' '
So I can stop doing this:my @list = (1)x5; # Yields (1,1,1,1,1)
And start doing this:@placeholders = map {'?'} @columns;
@placeholders = ('?')x @columns;
|
|---|