in reply to print on one line

In addition to what kennethk said, I think you don't want the -l switch, since you want to print the asterisk horizontally, not vertically; so I suggest that you replace l by w.

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^2: print on one line
by toolic (Bishop) on Jun 29, 2010 at 13:25 UTC
    It is true that the -l switch is not needed. Nor is $\="" needed since there is no input. Removing both will still output horizontal asterisks.

    However, -w will not affect the output with respect to horizontal or vertical; it enables warnings. See perlrun.

      However, -w will not affect the output with respect to horizontal or vertical; it enables warnings.
      Exactly, and that's why I recommended it.

      -l is not needed, so I suggested to remove it. -w is recommendet, so I suggested to add it. If you remove l and add w, you can equally say that you replace l by w ;-)

      -- 
      Ronald Fischer <ynnor@mm.st>