g day dear perlmonks.
fairly new to Perl i want to make my very first steps:
well i have a bit PHP-knowledge and i know a bit MySQL.
Friends have told me - this is the right time to jump into the new language - into Perl.
well i want to play around with perl.
i have :: DBI installed; also the mysql-db is up and running on my Linux-box.
i have a tiny little script that is called Parse::CPAN::Authors;
cf https://metacpan.org/source/LBROCARD/Parse-CPAN-Authors-2.27/README
use Parse::CPAN::Authors;
# must have downloaded
my $p = Parse::CPAN::Authors->new("01mailrc.txt.gz");
# either a filename as above or pass in the contents of the file
my $p = Parse::CPAN::Authors->new($mailrc_contents);
my $author = $p->author('LBROCARD');
# $a is a Parse::CPAN::Authors::Author object
# ... objects are returned by Parse::CPAN::Authors
print $author->email, "\n"; # leon@astray.com
print $author->name, "\n"; # Leon Brocard
print $author->pauseid, "\n"; # LBROCARD
# all the author objects
my @authors = $p->authors;
what is aimed: i want to store all the output in the mysql-db
regarding the db-things: well i am pretty new to perl-tasks.
but with the above mentioned module - i think i can learn alot - it is quite very simple. And with this i can play around - and try to find out how to store the data into a mysql db.
well could the results that i get be regarded as a perl object (reference to array of references)
i look for a good mechanism to serialize it and then store it on the DB?
hmm - if i want to store: should i make use of dumper!?
look forward to hear from you