Solved

form question: 10,000 characters

Posted on 2000-03-16
2
152 Views
Last Modified: 2013-12-25
Implementation Question.

I have a form that needs to accept up to 10,000 characters (DNA sequence info). I need a script to examine every character(delete "eol" char and potentially change ambiguous chars). I believe string variables in Perl can only be 256 char long.  Do I need to pass each line of form to the script, then create an array? Is there a way to read and pass individual char from the form to an array?  Need to use Perl even though not alot of experience, novice with C and C++.  Thanks

eboen
0
Comment
Question by:eboen
2 Comments
 

Accepted Solution

by:
akf earned 50 total points
Comment Utility
String variables in perl can be longer than 10,000 characters. I suspect you're thinking of the limitation on the length of the variable's *name*, not its contents.

This is just the sort of thing perl is really handy for. You can do global substitutions using s/x/y/g (global), or use tr/x// to delete characters. tr/ will likely be more efficient if you're just deleting characters.

By the way, if you haven't already, you should get the perl module CGI.pm to help you parse the input from the HTTP request. If there are already perl-based CGI's on your server, you probably already have either CGI.pm or it's predecessor, cgi-lib.pl, already installed.
0
 

Author Comment

by:eboen
Comment Utility
Thanks for the input. With your advice and some input from others I think I got it.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now