in reply to Re: One-liner to append text at fixed column
in thread One-liner to append text at fixed column

ah yes -l for chomp. Thanks! :)

|perl -lpe '$_= sprintf "%-48s  #:$1",$_ if /(^#|nextstate|var\d+)/'

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice