| 06/11/2015 Learn a little more about Perl World each day, with www.Planet-Source-Code.com's Code of the Day! Current # of subscribers: 2,207 |
Make 9 cents to $300 per game playing Dollar Candy. The better you get, the more you make. Click for more info.
=================================================================
Would you like access to thousands of lines of source code instantly from your desktop? Then check out the Planet Source Code CD...hundreds of amazing programs at your fingertips with no online wait!
Click Here!
Code of the Day: (What is the code of the day? )
1) Perl Script to obtain data file in a desired format
Submissions Since Yesterday:
NONE
1)Perl Script to obtain data file in a desired format
Category: Files/ Input/ Output
Level: Beginner
Description: This document discusses about using Perl, how we can obtain a data file in a particular desired format, given a data file in a random format. By format, we refer to the order of columns in the input data file. Using this Perl script, we obtain output data file in a particular format and we get another file having discarded data lines, based on some filtering condition. This will be useful, especially when we need data in a particular format in the data file, so as to store that data in database further. This is because once we obtain data file in a particular format, the logic/code for processing the data from data file for storing in database need not be changed every time. This Perl script takes care of converting input data file to a data file in a particular pre-defined format. Additionally, the records in the input data file can be filtered out based on some condition. For example, here we discard the lines if the number of fields in a line does not match the pre-defined number of fields. These discarded records can then be kept in another discard output data file.
Compatibility: 5.0 (all versions)
Submitted on 3/12/2007 12:32:55 AM and accessed 14626 times.
Back to Top
Planet Source Code is the creation of Ian Ippolito
To be chosen as code of the day, a submission must be the most popular submission that has not yet been shown as the code of the day.
Mailing list administration:
Click here to:
- ... be removed from this mailing list or subscribe to other programming languages
- ... modify your subscription or change your email address
- ... advertise your product or service in this newsletter (or call Exhedra Solutions at (813) 908-9029)
If you have problems removing yourself you can also contact us at:
webmaster@planet-source-code.com
OR
Exhedra Solutions, Inc.
14310 North Dale Mabry Hwy
Suite #280
Tampa, FL 33618
P: (813) 908-9029
No comments:
Post a Comment