Wednesday, June 10, 2015

Thursday's Perl World Submissions: Perl Script to obtain data file in a desired format

visual basic, vb, active server pages (ASP),java, javscript,c, c++, c__ , vbscript,active server pages, ASP, vbscript,SQL, database, informix, oracle, SQL Server,Perl, CGI,Delphi, PHP,source code, code, sample, samples, program, programs, help, tutorial,tutorials, routine, routines, jobs, listserve, mailinglist, bulletin board, bulletin boards, programming,  snippet, snippets, control, controls, class, classes, module, script, Scripts, applet , email , mp3, reference, windows,  modules, file, files, subroutine, subroutines, function, functions, sub, Microsoft, Sun,  downloads, winapi, directx, msaccess, ocx, vbx, ado, dao, odbc, rdo,  vbscript, vba, game programming, dcom, ole, com, dna, jet, dll, win api, winapi,  dbgrid, database front end, certify, decompiling, decompiler, visual basic for applications,  va  riable, constants, data type, byte, boolean, integer, long, single,  double, currency, date, object, string, variant, sub, function, free, 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


What is the code of the day?

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:

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