On Sun, Jul 06, 2003 at 11:20:03AM -, mark sony wrote:
> $_ = "The brown fox jumps over the lazy dog";
> /the (\S+)(?{ $color = $^N }) (\S+)(?{ $animal = $^N })/i;
> print "color = $color, animal = $animal\n";
>
> When I run the program it gives :color = , animal =
>
> I took it from thi
Something like this may work:
my $num = $description =~ tr/__/__/;
See "perldoc perlop" for the "tr" operator.
-Sharad
-Original Message-
From: Sara [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 06, 2003 11:50 AM
To: [EMAIL PROTECTED]
Subject: Counting the characters..
There is a form
On Sunday, Jul 6, 2003, at 04:20 US/Pacific, mark sony wrote:
Hi All,
Can anyone plz explain to me why this one is not working :
$_ = "The brown fox jumps over the lazy dog";
/the (\S+)(?{ $color = $^N }) (\S+)(?{ $animal = $^N })/i;
print "color = $color, animal = $animal\n";
When I run the
There is a form field 'description' which is the input for CGI script.
$description = "This is my description and it contains numerous __ double underscore
marks and __ these marks some special area in the field"
What I want to do is to count/extract the amount of times these double underscore
If you are assigning the value of the field "available" to a variable
then
you should kill or delete that variable (CGI::delete) before you are
able to
assign a new value to it.
Craig
No, I'm not assigning the value of available to a previously used
variable. For safety's sake, I am reading
Try with another browser. Maybe Mozilla doesn't take into account the HTTP
headers as it should, and it puts the pages on cache.
If it does this because of a bug or because it is a very bad browser, you
cannot stop it.
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]
- Ori
I should have mentioned that the connect call uses AutoCommit like this:
my $dbh=DBI->connect(DBD:mysql:databasename, "username",
"userpassword", {AutoCommit =>1});
Hi All,
I have a script that updates a value in a table using
$handle=$dbh->do(UPDATE league SET available=DATE_ADD(NOW() INTERV
Hi All,
I have a script that updates a value in a table using
$handle=$dbh->do(UPDATE league SET available=DATE_ADD(NOW() INTERVAL
$offset DAY);
The script then reads the value of "available" using a
prepare/execute/fetchrow statement.
The script then needs to e-mail the new value of the
Mark,
I get this...
color = brown, animal = fox
--- mark sony <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Can anyone plz explain to me why this one is not working :
>
> $_ = "The brown fox jumps over the lazy dog";
>/the (\S+)(?{ $color = $^N }) (\S+)(?{ $animal = $^N })/i;
>print "col
Octavian Rasnita wrote:
This doesn't work right every time.
A better idea is to put the HTTP headers in the real HTTP header like:
print <<"EOF";
Content-type: text/html
Pragma: no-cache
Cache-control: no-cache
Expires: Thu, 01 Jan, 3200 10:10:10 GMT
EOF
true, now I used
$r->no_cache(1);
$r->sen
Hi All,
Can anyone plz explain to me why this one is not working :
$_ = "The brown fox jumps over the lazy dog";
/the (\S+)(?{ $color = $^N }) (\S+)(?{ $animal = $^N })/i;
print "color = $color, animal = $animal\n";
When I run the program it gives :color = , animal =
I took it from this link
This doesn't work right every time.
A better idea is to put the HTTP headers in the real HTTP header like:
print <<"EOF";
Content-type: text/html
Pragma: no-cache
Cache-control: no-cache
Expires: Thu, 01 Jan, 3200 10:10:10 GMT
EOF
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECT
12 matches
Mail list logo