Solved

form question: 10,000 characters

Posted on 2000-03-16
2
154 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
ID: 2626718
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
ID: 2626750
Thanks for the input. With your advice and some input from others I think I got it.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

863 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

19 Experts available now in Live!

Get 1:1 Help Now