Hi,
I just finished taking a 2 day training class on Perl and would like to
learn more about the language. Is there a book that you all swear by that
helped you figure out the impossible?
Much appreciated.
Hager
Aack! Once again sent to the posted instead of the group. Sigh...
__
Are you perchance using IIS? IIS has a known bug in version 3, 4, and 5 (yup, that's 3
versions!), where it ignores the Set-Cookie: header when combined with a Location:
header.
You can find
Curtis,
thanks for your response. I didn't realise that the recompilation
problem didn't apply unless I
used /o.
I am actually trying to split some multiline data into single lines, so
the caret is intentional.
The data is typed into a TEXTAREA, one url or string to a line. The url
of the scrip
Ooops I¹ll try again...with a header this time.
Hi there!
Redirecting AND creating cookies - I can't!
I can create cookies...
print header(-cookie=>[$clubid,$membername,$pointsbal]);
That¹s fine
I can redirect...
print "Location: $gotourl";
OR
print
Hi there!
Redirecting AND creating cookies - I can't!
I can create cookies...
print header(-cookie=>[$clubid,$membername,$pointsbal]);
That¹s fine
I can redirect...
print "Location: $gotourl";
OR
print redirect("$gotourl");
That¹s fine
but NOT if
Is there a way to perform an automatic POST ?
David ([EMAIL PROTECTED])
In the "mod_perl_traps" page, when it refers to regexes only being compiled once, it is
specifically referring to regexes that use the /o modifier:
my $x =~ /$somevar/o;
In regular Perl (and mod_perl), that causes the pattern to only be compiled once. If
the value of
$somevar changes, the
G'day,
I've got a problem with a script I'm writing which will run under mod_perl. It
accepts a list of urls and a list of strings and returns a list of which urls
contain which strings. That's not complicated and I got it working fairly
quickly without any CGI involved.
Then I tried to conver
IMHO : Go for it while you have the energy!
Nothing will happen on lists if people hang back when they could answer. There will
always be days
when you are just too busy to even look at this or any list.
Rodney
Curtis Poe wrote:
> I've read the FAQ and I'm not sure to whom I should address t
I've read the FAQ and I'm not sure to whom I should address this question.
I joined the mailing list only a few days ago, yet I have answered quite a few
questions. I
certainly don't want to seem like a "know-it-all" and dominate the list. Should I
wait longer
before responding to ensure that
The code below does run, but it always returns a message of "No cookie
passed." I've refreshed the page, closed & reopened it & even quit my
browser & reaccessed. I never get any message but "No cookie passed"
I can look in the cookie list in IE's preferences, and the cookie is there.
Frustrated
I forgot to mention something: the first time you access the script through your
browser, it
won't have the cookie (since this is the first time it's being set). The second time
you access
it, the browser will return the cookie value and the script will display it.
> use strict;
> use CGI;
>
--- "Stokes, John" <[EMAIL PROTECTED]> wrote:
> OK, I'm still having a problem.
>
> I still can't seem to manipulate the cookie data. Say I want to record
> someone's name and then print out "hello so-and-so" when they return to my
> site. (That's not what this is actually for, but it's the same
OK, I'm still having a problem.
I still can't seem to manipulate the cookie data. Say I want to record
someone's name and then print out "hello so-and-so" when they return to my
site. (That's not what this is actually for, but it's the same idea.) Why
doesn't the code below work on the second vis
Not having used SSI much, I can only hazard a couple of comments.
1. Did you chat with the admin to find out whether or not "exec" SSIs is allowed?
Sometimes SSI
is available but this function is disabled for security reasons.
> I've tried #exec cgi="/cgi-bin/test.pl?value=name", but it's not
Hello -
I'm trying to use server side includes to invoke a perl script that just
writes to a file and I want to be able to pass a variable to that script,
but I'm running into problems. I know how to use the #set function to
define the variable, but I'm stumped on how to get it passed to the
Oops! Sent this direct instead of to the list :(
--- Maximilian Ronniger <[EMAIL PROTECTED]> wrote:
> $out=> $data,
As Brett pointed out, this line is in error. Try this:
$out->p( $data );
Also, your read_document sub has a slight problem:
> return $data;
> close SOURCE;
On Fri, 1 Jun 2001, Maximilian Ronniger wrote:
> Hello,
>
> first sorry for my english.
>
> I have writen this script:
>
> use strict;
> use CGI;
>
> my $out = CGI->new();
> my $docoment = '/home/httpd/html/test/texttoedit.txt';
>
> my $data = read_document();
> print $out-> header( "text/html" )
Hello,
first sorry for my english.
I have writen this script:
use strict;
use CGI;
my $out = CGI->new();
my $docoment = '/home/httpd/html/test/texttoedit.txt';
my $data = read_document();
print $out-> header( "text/html" ),
$out-> start_html(-title => "Test Test",-bgcolor => "#008080")
--- "Stokes, John" <[EMAIL PROTECTED]> wrote:
> I've figured out how to set a cookie, and I think I've retrieved it
> successfully (no errors, at least), but now how do I manipulate it? I can't
> figure out how to reference the cookie data.
>
> Here's an example of my code:
>
> use CGI;
> $q =
> -Original Message-
> From: Stokes, John [mailto:[EMAIL PROTECTED]]
> Subject: Retrieving cookies
>
> I've figured out how to set a cookie, and I think I've retrieved it
> successfully (no errors, at least), but now how do I manipulate
> it? I can't
> figure out how to reference the cooki
I've figured out how to set a cookie, and I think I've retrieved it
successfully (no errors, at least), but now how do I manipulate it? I can't
figure out how to reference the cookie data.
Here's an example of my code:
use CGI;
$q = new CGI();
$myCookie = $q->cookie(-name=>'Fyre',
22 matches
Mail list logo