Ok, we got the first problem I had figured out. (thanks everybody) But I'm
still having problems with textarea box. It only displays the first line
(until you hit the enter button). Here's the format of the data that I need
to put back into the textarea box:
--
Test Test Test
Having avoided CGI.pm for a long while, as I like my coding to look just right, I'm
just getting to grips with its state-flow.
But these have me stumped (well a dodgy LBW call):
1)
Basically I have n + (5 or 6) texstfields to fill, initially from a file which works
fine. Then the user makes
Web form element names automatically become script variable names and are
assigned their values...
use CGI 'param';
for $name (param()) {
$$name = param($name);
}
The double $$ is not a typo. Your question resulting in this solution has
reduced the script I'm working on, by about 2000
* news reader [EMAIL PROTECTED] [2002-03-15 21:36 +0100]:
I have a perl script which is working as TCP socket server. [...]
if (($processarray[$testNo] = fork()) == 0) {
[...]
The problem that i am facing is : the same line is printed more than once
When you fork(), the child inherits its
Ok, we got the first problem I had figured out. (thanks everybody) But I'm
still having problems with textarea box. It only displays the first line
(until you hit the enter button). Here's the format of the data that I need
to put back into the textarea box:
--
Test Test Test
This is very dangerous:
http://someserver.com/cgi-bin/script.pl?ls%3Brm%20-fr%20%2F%3B
With that url, you'll be executing the following:
system(/usr/bin/fms_registration ls;rm -fr /; /usr/bin/fmserverd);
Curtis thanks for the pointer I am aware that a few changes need to be made
for
Your question is not very clear. What regex are you using now, and what is
going wrong?
Are you looking for a way to count the c's in the input?
-Original Message-
From: rnoory
To: [EMAIL PROTECTED]
Sent: 3/16/02 7:09 AM
Subject: RE with not
Greetings... anyone can help write the
At 12:54 AM 3/16/02 -0500, Eric Beaudoin wrote:
Hi everyone,
I'm working on a script that will compile statistics for helpdesk tickets.
To compute these stats, I need to be able count the number of business
hours between the opening and the resolution of tickets. The working
hours are 08:00
Hi folks,
I love this list :-). I'm new to programming and perl, but feel brave
enough to venture forth after following the list for a couple of weeks.
I'm writing a Tk script and have a little question:
I want to be able to use the 'Del' key to delete an entry in the
following listbox:
Saturday, March 16, 2002, 1:24:11 AM, Jenda Krynicky wrote:
Imagine you need to compute something and the formula is pretty
complex. Then for some input values it is not computeable,
because you divide by zero at one point or other. To find all the
forbidden input values and test them might
Saturday, March 16, 2002, 3:29:29 AM, Yuan Cheng wrote:
I am wondering what else 'use strict' does besides it
is stated in the perldoc that it stricts on use of
'vars', 'refs' and 'subs'. Thanks.
They basically stop you from doing things that are
dangerous, or stupid, or could break things
Saturday, March 16, 2002, 12:42:40 AM, Tiller, Jason wrote:
my %params;
$params{$_} = param($_) foreach param();
If I understand your code correctly, param() returns a list of all the
possible keys, right? If so, then the above code should work. You refer to
the parameters as
Saturday, March 16, 2002, 9:58:15 AM, Gary Hawkins wrote:
Web form element names automatically become script variable names and are
assigned their values...
use CGI 'param';
for $name (param()) {
$$name = param($name);
}
The double $$ is not a typo. Your question resulting in
I know this foreach loop works (I included print statement within it and it printed
out results perfectly). However, for some reason the script doesn't continue after the
loop. Am I missing something really obvious?(the print text here just doesn't
happen?)
Thanks.
Mariusz
#!/usr/bin/perl
Hi,
Im new to perl and this list. I am trying to create a script that cleans up
csv files in the following ways:
-Remove tab characters
-Remove trailing commas
-Replace ^ character sequence with a comma
-Want to preserve the CRLF and the end of each line
Then I output the results to another
Im new to perl and this list. I am trying to
create a script that cleans up csv files in
the following ways:
search.cpan.org
There is a CVS module someplace, which might do
what you require with less hassle... or might
not.
-Remove tab characters
-Remove trailing commas
tr/\t//d; #
Thanks. I got lots to learn about perl, thinking for the 2 hours I was
trying to solve my issue with chomp and split. I have began disecting your
reponse to learn from it. One question, the last print statement:
print $_ . \n;
what is the significance of the . ? when I remove it nothing is
Kim,
Thank you for the note. Please send on when the services are, I do
want to attend.
My MUA believes you used Microsoft Outlook Express 5.50.4133.2400
to write the following on Saturday, March 16, 2002 at 3:59:43 PM.
KR I received this from Fred Freiheit this morning.
KR Kim Rahl
KR
Hey Farshad,
Check out mod_perl at http://perl.apache.com/guide/
It's a persistent perl interpreter which offers all the features you've specified,
used by some major sites such as my own:
http://www.workzoo.com/
If you're looking for documentation see the Eagle book 'Apache modules in C and
Mariusz,your script works fine!
Mariusz wrote:
I know this foreach loop works (I included print statement within it and it printed
out results perfectly). However, for some reason the script doesn't continue after
the loop. Am I missing something really obvious?(the print text here just
it won't print to web page. no htmlbody tags. yes?
On Saturday, March 16, 2002, at 01:26 PM, Mariusz wrote:
I know this foreach loop works (I included print statement within it and
it printed out results perfectly). However, for some reason the script
doesn't continue after the loop. Am I
Hi All,
As we all know Regular Expressions are very greedy and tries to big as big
as possible.
How do i limit a regular expression for example ion the follwing case
i try to find a specific directory called tmp_* in some paths which are like
this
html tags are not the problem. I included another print statement before the loop and
that outputs text 1 here to the web. However, text 2 here doesn't get printed?? I
feel stupid since it's only few lines and it looks very simple and ok to me...Can
anyone think of a reason why would the
23 matches
Mail list logo