Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Data structure help

Status
Not open for further replies.

mk58581

Programmer
Apr 6, 2010
2
US
Hi

Am lookin' for an example script to extract similar set of data from 3 different servers (Sybase/Oracle/MS SQL) and perform say sum for one of the columns.

Which reference is best in extracting the rows.

It would of great help if anyone of you could suggest me a gud book for references, array of arrays, hashes of hashes

Thanks in advance
 
As well if there a comma separated file from which i have to access the values and use them while performing arithmetic operation for the above.

Thanks
 
SQL servers like the ones you describe above support standard SQL functions to sum columns. Do the work in the SQL, not in your code, then it will be portable in the way you want, and you will only have to change the connection string for the DBM.

See the DBI module on CPAN for database access, and the very useful site for how to connect to a whole variety of DBMs.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top