Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Parsing and modifying CSV files

by ch1 (Novice)
on Sep 24, 2005 at 04:55 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2023-03-27 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?