我正在学习Perl,所以请耐心等待我这个noob问题.
如何在字符串中重复一次字符n次?
我想做类似下面的事情:
$numOfChar = 10; s/^\s*(.*)/' ' x $numOfChar$1/;
perl
perl ×1