Search code examples
perlwhitespace

How to add tab before table?


I want to have this output tab space before TabularDisplay

I am trying to print tab space in front of the whole table. I tried adding tab space before : print $table->render; but it's adding tab space before the first line only. Is there any way to do this?


Solution

  • So you want to modify the string returned by $table->render...

    print $table->render =~ s/^/\t/mgr;