in reply to Making a variable tab string

You seem to have mistyped "tabs\t" for "$tabs\t". In that case, you can use the more elegant operator .=:
for ($i = 0; $i < $numTabs; $i++) { $tabs .= "\t"; }

But, like jwkrahn wrote: you might as well use x instead of the loop, so this becomes:

$tabs .= "\t" x $numTabs;

Replies are listed 'Best First'.
Re^2: Making a variable tab string
by sandrider (Acolyte) on Feb 22, 2007 at 00:08 UTC
    Thank you.