473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Search a .CSV file in perl

Hey there,

I'm a second year programming student, and for our first assignment in Perl I've been asked to write a simple web page to search through a .csv text file and display results.
There are four separate search fields, and a full text field. I guess my question is, what is the syntax for comparing a $_POST var, with the text in a .cvs file?
Feb 24 '11 #1
1 1860
miller
1,089 Expert 1GB
That's no special "syntax", just gotta do the programming logic.

If you're allowed to use cpan module, this might help you out: Text::CSV.

Otherwise, if you have a specific problem, feel free to ask for guidance.

- Miller
Feb 24 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: lonelyplanet999 | last post by:
Hi, I'm a newbie to perl and is now studying about perl programming, I read some perl programming tutorials online (enter 'Perl tutorial' at google.com) and also find some sample perl scripts...
5
by: Boris Bulit | last post by:
Hi, I need to seach all files in a folder that contain an specific text. Thanks Boris
1
by: junkmauler | last post by:
I need a pre-made class (this is way over my head.. I can imagine the pseudo code but cant implement it myself) that can search a file for a specified binary pattern. Actually what I really need...
5
by: beliavsky | last post by:
The following code to search a file for tabs does not work, at least on Windows XP. Could someone please tell me what's wrong? Thanks. xfile = "file_with_tabs.txt" for text in open(xfile,"r"):...
0
by: James | last post by:
Hello, We've developed a search engine for our web site in which user searches a collection of MS Word documents using a keyword. The search works fine. Is it possible to have MS Word search...
3
by: pa2ratczi | last post by:
hi folks, just want to ask some procedure in terms of searching files with visual basic. The program i want to make id that i want to be able to search file by just entering a file name in a text...
2
by: ch68813 | last post by:
I'm making a program that asks for an item number and if it matches an item number in the text file it will then determine its next move by what variable is displayed on the line that the item number...
4
by: Perl Beginner | last post by:
Whenever i type in a word in the 'Search' box, i get a long list of results from every forum. is there a way to do a search just within the Perl Forum? Thanks, Terra
0
by: =?Utf-8?B?TWFyY2VlcG9v?= | last post by:
I'm a newbie using Visual Studio and Vb.Net. The vbscript below opens a Windows Explorer Search Window. The Windows Explorer Search Window has fields in which the user can insert: (i) a search...
2
by: praveengnaik | last post by:
how to search file in the system in vb 6
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.