Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

form question: 10,000 characters

Posted on 2000-03-16
2
Medium Priority
?
160 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 150 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

670 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