As pointed, DBD::CSV is definitly a way to go, but if you all you want to do is simple stuff (and I
mean simple), check out
this node for a flatfile alternative.
(a bit of self-promotion never hurt anyone, right? :o))
#!/home/bbq/bin/perl
# Trust no1!