Go Back   CORTEX Forums > Local Happenings > CORTEX Blogs > I SQL
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Re-learning perl

This is a discussion on Re-learning perl within the I SQL forums, part of the CORTEX Blogs category; I haven't used perl much in the last 5 or so years. I prefer 'modern' languages like ruby but some ETL tasks have come up on our project that are ...


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 31st March 2010, 12:55 PM   #1
Member
 
Join Date: Jul 2009
Posts: 42
Leigh Kennedy is on a distinguished road
Default Re-learning perl

I haven't used perl much in the last 5 or so years. I prefer 'modern' languages like ruby but some ETL tasks have come up on our project that are way beyond what can nicely be handled with SSIS. Rather than having to use SQL as a text parsing language, we have decided to use perl.

An example of the type of problem we are facing is this: We get a file where the first character determines the format of the rest of the file. To get a complete transaction, you need to process 3 lines. For example we have (this is for a telco system):

1[TAB]123345[TAB]Acme Co
2[TAB]+61290099009
3[TAB]+61380088008[TAB]OUTBOUND[TAB]0.56[TAB]0.09

Where [TAB] means a tab character.

So we get the account number and customer name on line 1, calling number on line 2, the called number, call type, duration and cost on line 3. There is a 1-N relationship from 1 to 2 and 2 to 3.

so rather than write the most complicated cursor ever we are using perl. The thing is i'm a bit rusty.

I'm interested to know:
a) What are some good books for re-learning perl (as opposed from starting from scratch)
b) Do you agree with the approach ? how would you tackle this problem ?

Leigh.


Get More from the original blog...
Leigh Kennedy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.tbig.com.au/forums/i-sql/10598-re-learning-perl.html
Posted By For Type Date
Re-learning perl - CORTEX Forums - Tutorial Bin This thread Refback 1st April 2010 02:26 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistical learning with MARS admin Analytic News Feeds 0 25th March 2010 06:23 AM
Key Learning Trends for 2010: Are You Onboard? Latest News Headlines Forrester 0 30th December 2009 08:03 AM
Predictive Analytics World ? Methodology and Business Learning Latest News Headlines Open Source News and Opinion 0 25th November 2009 11:39 AM
Learning from the Black Swan Latest News Headlines Open Source News and Opinion 0 25th November 2009 11:39 AM
The R Learning Lasso Latest News Headlines Open Source News and Opinion 0 25th November 2009 11:39 AM


All times are GMT +11. The time now is 09:10 AM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO