Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

file parsers
Hello all,

I have a ms access db that spits out all the zip codes of our
subscribers. I'd like to write a program that can parse, group, and
count like numbers, eventually for relay to a graphic interface. Being
new to perl, where is a good place to start? I'm sure there are many
programs written for this exact task, yet that would rob me of a
frustrating learning experience.


Report this thread to moderator Post Follow-up to this message
Old Post
Lance W
06-03-05 08:56 PM


Re: file parsers
On Fri, 3 Jun 2005, lance w wrote:

> I have a ms access db that spits out all the zip codes of our
> subscribers. I'd like to write a program that can parse, group, and
> count like numbers, eventually for relay to a graphic interface. Being
> new to perl, where is a good place to start?

Try DBI and DBD::ODBC.

Most database programming in Perl is done with the DBI (database
interface) CPAN module, and a DBD (database driver) for the database
engine you're working with. In that way, the same program code can be
applied to different databases with few if any changes -- in general,
you may need to rewrite some SQL statements, but that's about it. You
can read about DBI on cpan.org at this page:

<http://search.cpan.org/~timb/DBI/DBI.pm>

On Windows, most database programming goes through the ODBC bridge,
which is more or less exactly what DBI provides for Perl. Therefore, the
easiest way to get Perl code working with most databases on Windows is
to use the ODBC driver, DBD::ODBC. Read about it here:

<http://search.cpan.org/dist/DBD-ODBC/ODBC.pm>

The standard book for this is _Programming the Perl DBI_:

<http://www.oreilly.com/catalog/perldbi/>

There's a sample chapter online explaining the general architecture of
DBI and how to work with it in your programs:

<http://www.oreilly.com/catalog/perl...apter/ch04.html>

Take a look over this material, try writing some basic scripts with it,
then come back to the list when you have more specific questions.




--
Chris Devers

Report this thread to moderator Post Follow-up to this message
Old Post
Chris Devers
06-03-05 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:42 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.