> How do you keep line numbering straight > in a perl script. No code example? I can only assume you want:
while (<>) { printf "%.5d: %s", $., $_; } or maybe: while (<>) { printf "%5s: %s", $., $_; } or even: perl -n -e 'printf"%.5d: %s",$.,$_' Clear description of your requirements is important, since our ESP ability (mine in particular) is quite lacking. Take care, Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]