
richsark
User
May 5, 2009, 6:54 AM
Post #30 of 30
(1218 views)
|
|
Re: [richsark] need another set of eyes on my perl script
[In reply to]
|
Can't Post
|
|
Hi, How can I format the results, seems like its doing a carriage return. Now it looks like this: Subnet,Static,DHCP,Unused 10.0.0.0/8 ,37,0,217 146.149.0.0/16 ,174,0,39314 Can it be formated Subnet,Static,DHCP,Unused 10.0.0.0/8,37,0,217 I tried to play with the line printf $log "%s,%d,%d,%d\n", $subnet, $counts{Static}, $counts{DHCP}, $counts{Unused}; I tried this: printf $log "%s,%d,%d,%d,%d\n", $subnet, $subnet, $counts{Static}, $counts{DHCP}, $counts{Unused}; And: printf $log "%s,%d,%d,%d\n", $subnet, $subnet\n $counts{Static}, $counts{DHCP}, $counts{Unused}; Any thoughts?
|