Perl Monk, Perl Meditation | |
PerlMonks |
Re^6: Text to CSV with user input commaby shushant (Novice) |
on Jun 28, 2013 at 08:37 UTC ( [id://1041180]=note: print w/replies, xml ) | Need Help?? |
yes pretty much , but what I have done is replaced the commas of text file to a delimiter as ;; , so that i can split it using ;; , and even if there is a comma in file it would not affect it
input looks like 50;; C,nt ;; ;;8;; 1;; ds;; 1;; a;; 1;; 0;; 0;; ;; ;; ;; output looks like " 50"," C ,nt "," ",8," 1","ds","1"," Va"," 1"," 0"," 0"," "," "," " and I just want these " " to get omitted push @rows, [ split m{ ;; }msx, $line ]; I have done this in the code
In Section
Seekers of Perl Wisdom
|
|