Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Best method of munging CSV data - using Text::CSV::Simple?

by billie_t (Sexton)
on Feb 08, 2006 at 05:06 UTC ( #528719=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    "CN=MBX_MANA,OU= Mailboxes,DC=doman,DC=com",SMTP:Manager@domain.com;sm
    +tp:MBX_MANA@domain.com;FAX:MBX_MANA@domain.com;X400:c=us\;a= \;p=doma
    +in\;o=Exchange\;s=MANAGER\;,MBX_MANA,/o=Exchange Org/ou=First Adminis
    +trative Group/cn=Configuration/cn=Servers/cn=SERVER
    "CN=Guest,CN=Users,DC=domain,DC=com",,Guest,
    
  2. or download this
    my $parser = Text::CSV::Simple->new;
    $parser->want_fields(2, 3, 4);
    my @data = $parser->read_file($infile);
    
  3. or download this
    foreach my $line (@data) {
        chomp;
        if $line =~ /SMTP:/i 
    {do stuff} }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2021-09-19 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?