Re: get COOKIES with 'HTTP_COOKIE' ??

2002-12-16 Thread Larry Coffin
;, but rather as 'erik=test_cookie'. So you should be testing: if ($cookies =~ /erik=/) { ---Larry ++ | Larry Coffin, G.P.H. Watertown, MA | | http://www.PointInfinity.com/lcoffin/[EMAIL PROTECTED] | +-

Re: checksum implementation in perl

2002-12-12 Thread Larry Coffin
don't need to be, you should be all set. ---Larry +----+ | Larry Coffin, G.P.H. Watertown, MA | | http://www.PointInfinity.

Re: GNU grep -C in Perl

2002-12-10 Thread Larry Coffin
the next line } $last = $line; } That should work unless you want to make sure you never print the same line twice or if you want more than one line of context. ---Larry +--------+ | Larry

Re: If - Else What?

2002-11-26 Thread Larry Coffin
if ($a == 20) {print "a is equal to 20.\n";} ---Larry +--------+ | Larry Coffin, G.P.H. Watertown, MA | | http://w

Re: @array to %hash

2002-11-20 Thread Larry Coffin
ck easy way to do it given @keys (array of keys) and @values (array of values): @hash{@keys} = @values; This will set up the key/value pairs in %hash. ---Larry +--------+ | Larry Coffin, G.P.H.

Re: lost - map { "$_:\t$h->{$_}[0]\n"} keys %$h

2002-10-21 Thread Larry Coffin
ement and not the data structures involved) ---Larry +--------+ | Larry Coffin, G.P.H. Watertown, MA | | http://www.PointInf

Re: Substring and Sort

2002-10-21 Thread Larry Coffin
may well do). This comes at the expense of having to save the converted filename, so if for some reason you are tight on memory (i.e. 1000s of filenames) and have lots of CPU cycles to spare, then you might not want to save it and do the case conversion in the s

Re: Nice

2002-10-20 Thread Larry Coffin
, 0, getpriority(0,0) + 4; ---Larry +--------+ | Larry Coffin, G.P.H. Watertown, MA | | http://www.PointInfinity.com/lcoffin/[EMAIL PROTECTED] | +---

Re: Is this correct? print syntax

2002-10-11 Thread Larry Coffin
ements are executed conditionally. And I agree with your earlier letter that it is better to break those into two statements and enclose them within an 'if' block -- much cleaner that way. Thanks for clearing that up! ---Larry +---------

RE: Is this correct? print syntax

2002-10-11 Thread Larry Coffin
is getting tossed and the 'next if (...)' is not dependent on the print statement. ---Larry +--------+ | Larry Coffin, G.P.H. Watertown, MA | | http://www.PointInfinity.com/lcoffin/

Re: very confused - chdir not working

2002-10-11 Thread Larry Coffin
27; before using the package names: foreach my $pkg (@pkg){ chomp $pkg; my $dir1 = $pkg; ... You might also want to change your die statement to: or die "cannot change to \"$dir3\": $!" to get more informative error messages.