Solved

form question: 10,000 characters

Posted on 2000-03-16
2
158 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
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 fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

738 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