get COOKIES with 'HTTP_COOKIE' ??

2002-12-16 Thread Erik Browaldh
Hello! what am I doing wrong with these co-operating perl-scripts? the first script sets a cookie, but I cant retrieve them when running the 2nd.. Something wrong with the $cookies=$ENV{'HTTP_COOKIE'}; ? thanks in advanced! Erik the first script with cookies: -

Re: help with substitution

2002-12-11 Thread Erik Browaldh
Hi! no, its still not changing the letters (but thanks Rob).. I have a string: $givenword="YY-" and another string (the original) $word="not" now I want $givenword to look like this: $givenword="no-" ? thanks in advanced! Erik Rob Dixon wrote: Hello Erik It's not clear exactly what you

help with substitution

2002-12-11 Thread Erik Browaldh
Hi everyone, thanks for the help last time! if I have the string $word="cows"; and another given string: $givenword="XXX-"; #with the same length as $word !!! what I want to do is transform "XXX-" --> "cow-" I have tried but cant figure out going characterwise, all I get in the end is like th

help with substitution

2002-12-11 Thread Erik Browaldh
Hi everyone, thanks for the help last time! if I have two strings $word="cows"; and another given string: $givenword="XXX-"; #with the same length as $word !!! what I want to do is transform "XXX_" --> "cow-" I have tried but cant figure out going characterwise, all I get in the end is like t

cookies, cant reach it from $ENV{'HTTP_COOKIE'}

2002-12-09 Thread Erik Browaldh
Hello again! going from one cgi-scripts to another and I cant get the cookie? I write some of the code here. cgi-script 1: .. ... use CGI qw(:standard); $name1=param('name'); # get the name from a fill out form $cookie1=cookie(-name=>$name1 ); print "Content-Type:text/html\n\n"; then I op

transforming strings to an array of characters

2002-12-09 Thread Erik Browaldh
hi everyone! if I have a string, lets say $word="perl"; I want to copy this so I have something like this: @word_list["p","e","r","l"] also, how do I get the length of @word_list? thanks in advance! Erik -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL