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

In reply to store the output of the request to the db - instead of printing by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.