| |
| ||||||
Re-learning perlThis 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 ... |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Member Join Date: Jul 2009
Posts: 42
![]() | 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... |
| | |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 |
| | |
| | |