AllExperts > Perl & CGI 
Search      
Perl & CGI
Volunteer
Answers to thousands of questions
 Home · More Perl & CGI Questions · Question Library  · Free Encyclopedia ·
More Perl & CGI Answers
Question Library

Ask a question about Perl & CGI
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
About Justin Wheeler
(Top Expert on this page)

Expertise
Any question relating to Perl including its internals, data structures, speed, memory usage, syntax, version changes, extra CPAN modules, code standards, code cleanup, or just silly problems.

Experience
I have been writing Perl code professionally for almost 10 years. I have modules on CPAN, have Perl code that's included in the latest versions of Redhat, Debian, etc. I have done professional Perl work for many household names including Ticketmaster, Interflora, and allbookstores.com.

Education/Credentials
Only work experience and a love of all things Perl.

   

You are here:  Experts > Computing/Technology > Perl/PHP > Perl & CGI

SubjectDate AskedExpert

Perl script - combine arrays/create new array based on header11/20/2009Jason Silver
  Q: I attempted a few lines of Perl to format some data and have become stuck. I am am slowly learning ...
  A: Glad the code worked out of the box-- I didn't test it at all. The 'sort by value' is done by using ...
Perl script - combine arrays/create new array based on header11/19/2009Jason Silver
  Q: I attempted a few lines of Perl to format some data and have become stuck. I am am slowly learning ...
  A: Though not tested, I would do it this way since you said the file isn't very large: #!/usr/bin/perl ...
find and replace11/17/2009Justin Wheeler
  Q: I have one html file. I am reading the file line by line, and I want to find every occurrence of the ...
  A: When you do that, perl things you're ending the regular expression at </ and then you're giving it ...
Help on FAST CGI settings10/25/2009Michael Kroher
  Q: Can you help me to adopt the correct optimum settings for fast cgi? Our site runs on IIS6, PHP & ...
  A: I'm not familiar with a Windows environment, but I will say that 15 to 20 visitors a minute is not ...
Testing HTML forms with cgi on Windows10/24/2009Justin Wheeler
  Q: I need to test out a HTML form which has a cgi script to it on my Windows PC. I tested the cgi out ...
  A: You'll need to run an actual webserver to run the CGI. If it's a Perl scripts, you'll need to ...
CGI script10/15/2009Justin Wheeler
  Q: I'm trying to read in name-value pairs from a POST where the value pairs are "CD=2&CD=3&CD=4 I need ...
  A: Your best bet is to use the CGI script, which will parse it for you. Then, you'd do something like. ...
Searching for EOLN in comment area10/3/2009Michael Kroher
  Q: I have a HTML form just like this form that you have in here. I collect the info and dump it into a ...
  A: getting a CGI error can be any number of things wrong. The error message that you are getting is ...
Searching for EOLN in comment area10/2/2009Michael Kroher
  Q: I have a HTML form just like this form that you have in here. I collect the info and dump it into a ...
  A: Your EOLN character you want to switch is \n. You can switch it with something else like: ...
Perl XML:Simple9/30/2009Justin Wheeler
  Q: I'm trying to user xml:simple to break down an xml doc that I'm receiving from another website. I've ...
  A: Yes, you'll likely need a foreach or something like that to traverse the data. Your best bet is to ...
issue9/25/2009Michael Kroher
  Q: how to call from one perl program to another perl program with examples ANSWER: You can easily call ...
  A: I'm having trouble understanding your question...do you mean subroutines? Like a function? ...
issue9/24/2009Michael Kroher
  Q: how to call from one perl program to another perl program with examples
  A: You can easily call (any) program within a perl script using ` (backticks), or qx(). I prefer to ...
Run same perl script on Win and Unix'es9/7/2009Jason Silver
  Q: I'm writting a perl script for both Win and *nix environments. At this moment I have to code 2 ...
  A: the way I do this is to set variables at the top of the script which accomodate the differences. ...
XML::Simple8/29/2009Justin Wheeler
  Q: I have an xml doc that is pulled from another site a copy is saved to a temp file on my server then ...
  A: Opening and writing to lib/temp/$id.xml isn't very safe. I'd suggest something more like this: use ...
How Do I pass a javascript variable to a Perl script?8/12/2009Jason Silver
  Q: I've tried a million things. Below is the latest. Any time I use value=dayofmonth in the input I get ...
  A: This is a Javascript question, not a Perl question. But it looks to me that you've got a typo or ...
cgi html problem7/10/2009Marty Landman
  Q: #!C:activeperl/perl/bin/perl print <<EndOfHTML; content-type:text/html <!DOCTYPE html PUBLIC ...
  A: I'm not sure what the problem might be. But try this instead: #!C:activeperl/perl/bin/perl use ...
cgi html problem7/10/2009Marty Landman
  Q: #!C:activeperl/perl/bin/perl print <<EndOfHTML; content-type:text/html <!DOCTYPE html PUBLIC ...
  A: Try having 2 carriage returns after your first line ie. content-type:text/html <!DOCTYPE html ...
php flush won't work in IE77/10/2009Jason Silver
  Q: My problem : I want the navigator to start displaying outputs even though the whole page is not ...
  A: This question is misdirected as this is a Perl forum. However, I do have experience in PHP, and can ...
perl assignment question6/7/2009Justin Wheeler
  Q: I don't understand what is being assigned to the $paper variable in the line below. I've checked 3 ...
  A: You're assigning an empty hash reference. It's the exact same as. my %hash = (); my $paper = ...
Can't open a file with an extensionless script.5/29/2009Justin Wheeler
  Q: I am using the code at the bottom in myscript.pl to open a counter file, get the number then ...
  A: Whether or not there's an extension on the file should not change the way it operates. The only ...
PERL + HTML5/8/2009Justin Wheeler
  Q: so I want to know if somehow I can use both of them at the same time? Actually I want to know if I ...
  A: Yes, you can do this. You'd have to write a perl script that would interpret the incoming form post ...
perl in PHP5/8/2009Jason Silver
  Q: so I want to know if somehow I can use both of them at the same time? Actually I want to know if I ...
  A: Yes, it is possible to write a script that can take form input, and then do things on the server. ...
Perl Programming Question5/8/2009Justin Wheeler
  Q: ...I'm new to Perl and trying to pick up on things along the way. I'm trying to create a Perl ...
  A: In the else clause on your subroutine, you have this: return $prev_dt; $prev_dt = $a; So the ...
non-working DBM script5/7/2009Justin Wheeler
  Q: I am trying to get this script to work. The main html page is a simple 3-field entry form to enter a ...
  A: You can run your scripts on the command line and use them like you would in a browser to see if your ...
data extraction4/15/2009Justin Wheeler
  Q: Justin: I am not sure who to ask, so I'll try you. In my medical practice, I must verify ...
  A: Yes, just about any language should be able to perform that functionality for you -- Perl, PHP, ASP, ...
making forms work with fasthost3/27/2009Marty Landman
  Q: any idea how to make forms and scripts work on fasthosts in UK they say you need a -f paramater in ...
  A: Lee, Maybe I'm misinterpreting this, but if you look here http://littlelink.webtrouble.com/?qwSz ...
My First Perl Program3/23/2009Justin Wheeler
  Q: My Perl program that is getting a diagnostic (Global symbol "$filename" requires explicit package ...
  A: Neil, The issue is the 'use strict'. It enables variable declaration to use them. In the first ...
BNB form3/18/2009Jason Silver
  Q: I've been running a CGI form script made by bignosebird.com for several years without problems ...
  A: Things usually stop working because something changes somewhere-- I recommend giving your host a ...
Perl TCP Socket how to handle large records3/7/2009Justin Wheeler
  Q: Howdy I have looked all over the place and can't seem to find how to do this in Perl. There ...
  A: How are you currently doing this in Perl? Reason I ask is because most of that kind of stuff is ...
Declare variable dynamically3/3/2009Justin Wheeler
  Q: I have a following array: use strict; my @arr=qw(computer laptop telephone); The contents of @arr ...
  A: Doing that is generally considered a bad practice, as it requires you to disable strict references ...
Perl and asp2/28/2009Marty Landman
  Q: I need to call an asp link from a perl script, by passing parameters, and would like to simply use a ...
  A: Achille, This should work, unless for some reason this feature was disabled by the server. As I'm ...
Configure.cgi did not produce a v alid header in unix box2/25/2009Marty Landman
  Q: When i am running my application on Iplanet Web server 6.0, I got error "GET ...
  A: Mohan, You can see what these status codes mean looking at the W3's website at ...
Eval, maybe?2/20/2009Marty Landman
  Q: I submit a form and get 2 data: $from="from" and $to="to" From another routine, I have a value ...
  A: Ok that seems clear; yes you can use eval for this kind of thing, however please consider as an ...
Eval, maybe?2/20/2009Marty Landman
  Q: I submit a form and get 2 data: $from="from" and $to="to" From another routine, I have a value ...
  A: Anatoli, Not sure about your question; are you asking how to do variable assignments? How to pass ...
Password Protection2/11/2009Marty Landman
  Q: I'm hosting a site on a linux server. I need to be able to direct visitors to 5 different ...
  A: I think you'll have to use a program - then once the program has validated the password you can ...
Password Protection2/10/2009Marty Landman
  Q: I'm hosting a site on a linux server. I need to be able to direct visitors to 5 different ...
  A: John, Sounds like you have thought this through - asking the right question. My answer is that ...
Text encoding from oracle2/10/2009Marty Landman
  Q: I have a CLOB in an oracle database that contains various scientific symbols such as the micro (Alt ...
  A: Joe, There looks like a possible solution - with code - posted on the PerlMonks website ...
Text encoding and perl2/10/2009Justin Wheeler
  Q: I have a CLOB in an oracle database that contains various scientific symbols such as the micro (Alt ...
  A: The way this question gets answered is different based on which version of perl it is you're using. ...
forms and CGI2/10/2009Jason Silver
  Q: I am new to programming and am using dreamweaver. I can create a form, but I get lost on the cgi ...
  A: I suggest you download a form processing script -- either in PHP or Perl. For example, I give one ...
cgi script issue2/3/2009Jason Silver
  Q: I have created a form using a script that I got from Bignosebird.com, it is bnbform v4.0. I made ...
  A: Actually, I believe your tech support was mistaken. It WAS administratively denied, but not because ...
Sub routine1/22/2009Jason Silver
  Q: I have some numbers in @game=(10,2,13) for example and want to display for each number, a picture ...
  A: Try this instead: @game = (10,2,13); sub show { $what2show = $_[0]; $show="<img ...

Page:   1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10  |  Next      All


Questions by
Active Experts:
Michael KroherJason SilverJustin Wheeler
Marty Landman  

Email this page
     
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2006 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.