Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: to csv file

by poj (Abbot)
on Jun 29, 2013 at 07:10 UTC ( [id://1041410]=note: print w/replies, xml ) Need Help??


in reply to to csv file

Do you want trre,dsa to appear in one column or two ?. Your post shows two.

poj

Replies are listed 'Best First'.
Re^2: to csv file
by Anonymous Monk on Jun 29, 2013 at 07:41 UTC
    i am sorry it was a mistake , i want them as one

      One way is to take advantage of excel's ability to open tab delimited text files with .xls extension

      #!perl use strict; open OUT,">test.xls" or die "$!"; while (<DATA>){ s/;;/\t/g; print OUT; } close OUT; __DATA__ abd;;sasa;;trre,dsa;;sdas;;dsss abd;;sasa;;trre,dsa;;sdas;;dsss abd;;sasa;;trre,dsa;;sdas;;dsss
      poj
        hey the thing is i need the output as csv , because it is an input to other sub routine

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1041410]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2026-01-12 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.