You are here:
| Subject | Date Asked | Expert |
| file renaming | 10/31/2011 | Justin Wheeler |
| Q: I have 32 folders with the year 1972 to 2011 and in each folder there are many more sub folders ... A: Of course. This is off the top of my head, but something *like* this should work: <pre> my $dir ... | ||
| Perl | 10/13/2011 | Jason Silver |
| Q: There is no strict data types in perl as in other high level languages like Java so wouldn't that ... A: I'm sorry I misunderstood the question the first time. I'm not certain this would be a problem if ... | ||
| Help with regexp | 9/14/2011 | Justin Wheeler |
| Q: Justin, My question is more related to help with regular expressions, so I hope you can help me. ... A: Your regex would look something like: ... | ||
| regex easy | 9/8/2011 | Justin Wheeler |
| Q: I have a file renaming utility that takes regex. I need to know what I need to do to rename the ... A: This isn't really a job for a regex. I'd do something like: my $filename = q{32037-JUSTIN'S}; my ... | ||
| perl | 8/10/2011 | Justin Wheeler |
| Q: how can i declare a variable in strict mode without using my (keyword) A: I'm not sure I understand your question. Specifically, why you would want to do that. The point of ... | ||
| CGI script installation error message | 7/27/2011 | Jason Silver |
| Q: Greetings from South Africa and hope you can help me with my small installation problem. I recently ... A: I am not familiar with this script, but it looks like it is trying to write to a file and is not ... | ||
| retrieving images from html files | 7/22/2011 | Justin Wheeler |
| Q: I thought this would be easy but I cant seem to get it right. I need to go through an html file and ... A: I fear the site's formatting may have completely borked what you sent me, but if you wanted all of ... | ||
| 500 Internal Server Error | 5/8/2011 | Justin Wheeler |
| Q: I keep getting a 500 internal server error when I try to upload a video to my video sharing website. ... A: A 500 error can be any one of dozens of things. Generally it means the upload program didn't run, ... | ||
| CGI Help | 3/31/2011 | Justin Wheeler |
| Q: Justin, I need some help again. In my CGI script, I have this line: @Special = ... A: You would want something like: my @names = qw( drizzt rylore ); my $name_char = q{}; foreach my ... | ||
| CGI Help | 3/31/2011 | Justin Wheeler |
| Q: Justin, I need some help again. In my CGI script, I have this line: @Special = ... A: You're going through the array, and then assigning a variable on its result. The next time you get ... | ||
| Seach and Replace Arrays | 3/25/2011 | Justin Wheeler |
| Q: Justin, I'm trying to find a way to search an array of words and to replace them with an array of ... A: I'd do something like this: my %replacements = ( badword1 => 'replacement1', badword2 => ... | ||
| bnbform - need help / advice | 3/13/2011 | Michael Kroher |
| Q: ::Deep Breath:: Um..... ################################################################### sub ... A: I don't know how to attach a file using that script. I do, however, know how to do it using perl ... | ||
| bnbform - need help / advice | 3/8/2011 | Michael Kroher |
| Q: " Answer - Yes, anything is possible with Perl...." (Positive Words)Is "everything is simple if you ... A: Perl modules get installed server side. Usually the host will install the module for you. You just ... | ||
| CGI script on a web host server question. | 2/19/2011 | Michael Kroher |
| Q: I have recently been given the task of reworking my company's web page. I am fairly new to ... A: Yes, anything is possible with Perl. Are you able to get perl modules installed on the webhost? Are ... | ||
| End of string terminator | 1/22/2011 | Justin Wheeler |
| Q: I am trying to teach myself perl and have a problem with the script below returing: Can't find ... A: Not really -- later versions of perl will tell you where the opening bracket is that it thinks isn't ... | ||
| End of string terminator | 1/21/2011 | Justin Wheeler |
| Q: I am trying to teach myself perl and have a problem with the script below returing: Can't find ... A: That error means you opened ( somewhere but didn't close it. If you look at the second last line ... | ||
| cgi file-Perl language | 1/4/2011 | Jason Silver |
| Q: I am writing a cgi in perl language. The whole program contains an html form that has radio buttons ... A: First, give your radio buttons a name, so that when they are selected, and the form is submitted to ... | ||
| Hidden field in CGI | 11/29/2010 | Michael Kroher |
| Q: I have an array in a hidden field in script1 and want to pass and print a choice of value in ... A: First of all, are you making a shopping cart? There are tons of free options already made for you. ... | ||
| Enabling support for CGI scripting on Mac OSX | 11/10/2010 | Jason Silver |
| Q: I am following steps to do this outlined in 'Blog Design Solutions' I have typed a test file, named ... A: You may have made a mistake with your URL. 1. Is there a web server running on your machine? That's ... | ||
| upload file | 10/4/2010 | Justin Wheeler |
| Q: I have a web site and members who have to login. I have a file that I need to have a member download ... A: What you're looking for isn't really a function of the language. If you tried to lock out the user, ... | ||
| What to use | 8/3/2010 | Jason Silver |
| Q: I'm a programmer but I don't have must experience with web development. I would like to develop a ... A: If you want an interactive video game with sprites moving across the screen, etc., as opposed to a ... | ||
| Big Nose Bird Form CGI automessage | 8/3/2010 | Marty Landman |
| Q: I'm trying to get my automessage to send html instead of plain text. The automessage in bnbform.cgi ... A: John, If I understand your question correctly, you're asking about changing the text of an email ... | ||
| Perl/CGI | 6/2/2010 | Justin Wheeler |
| Q: I have donation website I constructed for a foundation. The site is built simply in CSS, html, and ... A: You need to escape any double quotes that can be found in your string. Better yet, do this: print ... | ||
| get value pairs from non encoded string | 5/26/2010 | Justin Wheeler |
| Q: When I use CGI qw/:standard Vars()/; I get this: $VAR1 = 'POSTDATA'; $VAR2 = '<?xml version="1.0" ... A: POSTDATA contains an XML file. You'll need to use something like XML::Simple or XML::Parser to get ... | ||
| receive and send response to java from perl | 5/19/2010 | Justin Wheeler |
| Q: I need to know how to receive an http post coming from java to my perl script and then send back a ... A: Perl can do anything. :) The fact that they're using a commandline shouldn't matter; as long as ... | ||
| GD::Graph and DBI | 5/6/2010 | Jason Silver |
| Q: I have some questions regarding GD::Graph and DBI and hope you could aid and guide me along. I have ... A: It's hard to see anything outwardly wrong with this, but my suggestion is to put some print commands ... | ||
| Using of GD::Graph | 5/5/2010 | Michael Kroher |
| Q: Good Morning Sir, If you remember, you helped me before in extracting data from my database using ... A: #!C:\Strawberry\Perl\bin\perl.exe use strict; use warnings; use DBI; use GD::Graph::lines; my ... | ||
| Coverting values in PERL | 4/27/2010 | Jason Silver |
| Q: I'm new in PERL and hope that you can help me. I'm new to PERL and have done a CGI script which ... A: Sorry, this means the variables weren't declared. Declare them before using like this: my ... | ||
| Coverting values in PERL | 4/27/2010 | Jason Silver |
| Q: I'm new in PERL and hope that you can help me. I'm new to PERL and have done a CGI script which ... A: > I have a wireless sensor that is collecting data like > temp,light and sound. COOL! > ... | ||
| Coverting values in PERL | 4/26/2010 | Jason Silver |
| Q: I'm new in PERL and hope that you can help me. I'm new to PERL and have done a CGI script which ... A: This is a bit complex if you don't understand Perl and DBI. I wish I knew more about your situation. ... | ||
| Web interface problem | 4/12/2010 | Michael Kroher |
| Q: Sorry to bothered but i hope you could spend some time to help me out. I'm new to PERL and CGI and ... A: If you only want to refresh the CGI part of the display, then you'll need to use javascript (AJAX). ... | ||
| Web interface problem | 4/9/2010 | Michael Kroher |
| Q: Sorry to bothered but i hope you could spend some time to help me out. I'm new to PERL and CGI and ... A: If I follow correctly, you made a script that reads a log file, and displays it to a web page? To ... | ||
| calling perl packages from another perl | 3/13/2010 | Michael Kroher |
| Q: I'm learning perl. I have many scripts and I use same packages in all scripts. Say, use DBI; use ... A: You can make a module that preloads all those. Here's an example: # Preload.pm file package ... | ||
| Perl CGI | 2/21/2010 | Marty Landman |
| Q: I am working with a system that someone else built. The CGI programming is nothing elaborate but I ... A: Jesse, The code you've posted is pretty basic old fashioned CGI/Perl. If it works that's a great ... | ||
| perl pattern match in multiple lines | 12/2/2009 | Justin Wheeler |
| Q: i am new to perl and i have trouble in searching patterns for multiple lines. Any help/suggestion is ... A: It appears my program got screwed in the paste. Also, you can't do it that way. If @grep_results ... | ||
| Can't find string terminator "END_HTML" anywhere before EOF | 11/23/2009 | Jason Silver |
| Q: #!/usr/bin/perl -wT use strict; use CGI; use CGI::Carp qw ( fatalsToBrowser ); use ... A: I personally recommend swapping out the <<END_HTML tag with the qq tag, as follows: print qq~ ... | ||
| Perl script - combine arrays/create new array based on header | 11/20/2009 | Jason 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 header | 11/19/2009 | Jason 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 replace | 11/17/2009 | Justin 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 settings | 10/25/2009 | Michael 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 ... | ||
Top Expert on this page
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.
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.

©2012 About.com, a part of The New York Times Company. All rights reserved.