ow hard is it to get started with Perl. I have read some things about the language, and getting it under my belt would really help me as a Linux user. Just...
33
chrisphantom
Nov 14, 1998 4:09 pm
34
gkl200
Nov 17, 1998 2:23 am
f I use Perl in tainted mode, is there a way to write data to a file where the file <br>name being written to is user defined via a cgi script input?<br>is ...
35
Essayons82
Nov 17, 1998 5:03 pm
resumably, both the filename and the data are user-provided and therefore tainted. The following code snippet example untaints the filename. Similar work may...
36
gkl200
Nov 19, 1998 4:15 am
h, I get it now.<br>thanks alot for your help, Ken....
37
fgranger
Nov 30, 1998 3:04 pm
feel it hard to begin with it. I am starting on MacPerl. But with all the help on the net ...<br><br>Keep trying....
38
vdvh
Dec 2, 1998 9:06 pm
want to search a file having lines such as:<br><br><!-- 12/12/98 -->12 December: Something1<br><!-- 14/12/98 -->14 December: Something2<br><!--...
39
vdvh
Dec 2, 1998 9:13 pm
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...
40
Rob_Wilson_98
Dec 3, 1998 9:27 pm
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...
41
gkl200
Dec 4, 1998 7:32 pm
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...
42
mondobongo
Dec 7, 1998 6:08 am
'm impressed Rob W., that's a pretty impressive grep! <br><br>--Mondo<br><br>depressionexpress.com...
43
mondobongo
Dec 7, 1998 6:22 am
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,...
44
Rob_Wilson_98
Dec 7, 1998 4:01 pm
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...
45
Essayons82
Dec 7, 1998 7:59 pm
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...
46
Rob_Wilson_98
Dec 7, 1998 9:04 pm
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 ...
47
mondobongo
Dec 9, 1998 6:32 am
'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...
48
mondobongo
Dec 9, 1998 6:39 am
'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...
49
OGAPO
Dec 11, 1998 3:52 pm
'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...
50
mondobongo
Dec 12, 1998 6:43 am
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 ...
51
mondobongo
Dec 12, 1998 6:44 am
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...
52
Essayons82
Dec 13, 1998 1:40 pm
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...
53
mondobongo
Dec 14, 1998 6:52 am
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...
54
Essayons82
Dec 14, 1998 3:07 pm
'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 ...
55
Rob_Wilson_98
Dec 14, 1998 7:19 pm
would have solved this problem by building a multidimensional hash (perl's structure of sorts).<br><br>Following the election example, we would ...
56
mondobongo
Dec 15, 1998 6:58 am
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...
57
xiaoyi
Dec 25, 1998 12:42 am
s it possible to create user accounts in batch<br>(i have admin right) by using a perl script<br>on NT?<br><br>thanks...
58
fgranger
Dec 29, 1998 10:07 am
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>...
59
Alienhands
Jan 10, 1999 10:46 pm
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...
60
Adrian_333
Jan 11, 1999 1:09 am
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...
61
Alienhands
Jan 11, 1999 2:59 am
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 ...