Solved

form question: 10,000 characters

Posted on 2000-03-16
2
159 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

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 …
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

630 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