read alot about security and cgi-scripts.<br>It all comes to this point: never trust user-dependent data.<br>If I understand this matter, you have to check all...
his solution assumes that you only want the events that occur in the same month.<br><br>Try:<br>#assume $date is the input string ("12/12/98")<br>#@lines are...
am writing a Perl/CGi script that needs to<br>a series of images using:<br><br>print "Content-type: image/gif\n\n";<br><br>Ths scripts outputs and rotates...
hat's a fascinating problem, gkl, I am curious to know how to fix that too, I'll check back tomorrow to see what people come up with.<br><br>All else fails,...
ot knowing more about your script, I would suggest you change one or more things.<br><br>If there are not that many images, or you are reading them from files...
annes-<br> There are several steps you must take to make user input safe in your CGI scripts.<br><br>1. First, you must run Perl with the -T attribute. This...
t seems that most people who post here are using perl as a cgi language, but I was wondering what else people are using them for.<br><br>When I was a system ...
'm working with chatterbots and expert systems in Perl. CGI is only used because 1) An internet browser is a simple-to-program user interface, 2) millions of...
'm working with chatterbots and expert systems in Perl. CGI is only used because 1) An internet browser is a simple-to-program user interface, 2) millions of...
've been working on a project for some time now, and I've sort of run up against a barrier here. How would you handle multidimensional arrays without writing...
ne shortcut I often use--which may not be elegant, but is quick and simple--is to store the second dimension as a concatenation of all the elements in the ...
hen, this record, which is actually a secondary array, could be extracted using the variable $election[0], then split up using the split command, splitting at...
long with the technique Mondo mentioned, Perl supports arrays of arrays, arrays of hashes, hashes of arrays, and almost any example you can think of.<br><br>As...
an an array, such as the one you mentioned, be sent to a function using the $_ protocol? I know older versions of Perl didn't support that, have things changed...
've cut and pasted your questions and then given my answers. I taken them slightly out of sequence.<br><br>Q: Also, in the billclinton example you gave, how ...
ob W.,<br><br>Thanks for that very detailed explanation. I think I will print it out, roll it up, and pound it against my forhead for a few days until it sinks...
o save this into a file, I would simply modify the above foreach loop:<br><br> @fields = qw( FName LName ... );<br><br> foreach $key (keys (%election))<br>...
i,<br><br>Could someone who knows how to program perl (for Linux not CGI) help me write a program for X-Windows? I can write Perl program for CGI but am a...
ell, I'm barely learning Perl, and am not a programmer but I think you just can't make a program that opens a window in X by just using perl. Check out <a...
i, Thanks for getting back to me. I am trying to make a perl programm that will start vairous Window Managers. IE it'll ask me "what wm do you want?" Then I ...
o add dates, check the validity of a day, etc.<br><br>Also, you can build a hash:<br><br>%limits = ('Jan' => 31, 'Feb' => 28,...);<br><br>just remember ...
ron and at are UNIX (and Linux) programs that run commands at specified times. If you just want to send an email next Monday, you would use at to schedule...