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

Parsing and modifying CSV files

by ch1 (Novice)
on Sep 24, 2005 at 04:55 UTC ( [id://494731]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    qty,model,size,color,sku
    224,128,MD,B,840197082997
    0,128,LG,B,840197083000
    0,128,XL,B,840197083017
    
  2. or download this
    v_products_model,v_attribute_options_id_1,v_attribute_options_name_1_1
    +,v_attribute_values_id_1_1,v_attribute_values_price_1_1,v_attribute_v
    +alues_name_1_1_1,v_attribute_options_id_2,v_attribute_options_name_2_
    +1,v_attribute_values_id_2_1,v_attribute_values_price_2_1,v_attribute_
    +values_name_2_1_1,v_attribute_values_id_2_2,v_attribute_values_price_
    +2_2,v_attribute_values_name_2_2_1,v_attribute_values_id_2_3,v_attribu
    +te_values_price_2_3,v_attribute_values_name_2_3_1,v_attribute_values_
    +id_2_4,v_attribute_values_price_2_4,v_attribute_values_name_2_4_1
    
    128,1,Download,0,,TEXT,2,Size,2,,SM,3,0,MD,4,0,LG,5,0,XL
    
  3. or download this
    #!/usr/bin/perl
    open(I1,"IM.csv") or die "IM.csv: $!";
    ...
                            }
                            else{push @lines2,$_}
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-28 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found