Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Export CSV v2

by Perl3r (Initiate)
on Oct 09, 2012 at 01:04 UTC ( #997906=note: print w/replies, xml ) Need Help??


in reply to Re: Export CSV v2
in thread Export CSV v2

Thanks choroba
Input files contains at the moment 5 lines.. eg

Location,Router_Name,Loopback IP,OSPF Process ID,OSPF Area,Network,Mas +k,GIG0/0 IP Address,0/0 Subnet Mask,Template ##location##,##rtrname##,##loop0-ip##,##ospf-id##,##ospf-area##,##ospf +-network##,##ospf-mask##,##eth00-ip##,##eth00-sm##, Sydney,SYD-RTR-001,192.168.15.1,99,0,172.25.16.0,0.0.0.255,172.25.16.6 +,255.255.255.0,router-C3840 Canberra,CBR-RTR-001,192.168.15.2,99,0,172.25.16.0,0.0.0.255,172.25.16 +.10,255.255.255.0,router-C2600 Melbourne,MEL-RTR-001,192.168.15.3,99,0,172.25.16.0,0.0.0.255,172.25.1 +6.14,255.255.255.0,router-C3840

Replies are listed 'Best First'.
Re^3: Export CSV v2
by Anonymous Monk on Oct 09, 2012 at 02:00 UTC

    Hi,

    I am suspicious of that comma at the end of line 2.

    J.C.

      Sorry, that was an error on my part- there is actually a value there.. Also it makes no difference if there is, or is not a value there. .

      Thanks for looking

Re^3: Export CSV v2
by choroba (Chancellor) on Oct 09, 2012 at 07:22 UTC
    Then you are probably setting the end-of-line to something else than actually present in the data.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997906]
help
Chatterbox?
[karlgoethebier]: there is just the mug: 🍺
[Corion]: A Bembel must look like this
[karlgoethebier]: https://de. wikipedia.org/ wiki/Bembel#/ media/File: Bembel_Zum_blauen_ Bock_1978.jpg
[choroba]: as my friend says, Ich stehe Deutsche ver nicht aber klein ;-)
[Corion]: Krug is generic pottery ware for pouring beverages, but a Bembel is painted with that blue paint and contains only (!) Apfelwein
[shmem]: Corion: alas, air too.
[Corion]: shmem: Yes, very sad!
[choroba]: doesn't sound much useful, which means I'll probably remember it
[karlgoethebier]: "that blue pain" == Salzglasur as far as i remember
[karlgoethebier]: Paint!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2017-05-24 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?