Re: localtime ()

2002-10-28 Thread Greg Oliver
Sorry - I am off on another tangent here.. "use locale;" is definately not what you need. I should read more closely! -Greg On Mon, 28 Oct 2002 09:38:18 -0600 Goodman Kristi - kgoodm <[EMAIL PROTECTED]> wrote: > I asked this question about a week ago but still have not found a > solution. >

Re: localtime ()

2002-10-28 Thread Greg Oliver
Have you tried: use locale; I suggested `perldoc perllocale` because I was not sure if you could use it on M$ platforms, but after I did a few seconds of research, I learned you can since it is partially POSIX compliant. This should tell perl what your locale (timezone offset from GMT/country co

Re: LOCALTIME question

2002-10-22 Thread Greg Oliver
Your locale is not set to CST6CDT. See 'perldoc perllocale' -G On Tue, 22 Oct 2002 13:38:47 -0500 Goodman Kristi - kgoodm <[EMAIL PROTECTED]> wrote: > My localtime function returns this: Tue Oct 22 18:30:53 2002 > > > I am in the Central Time zone and my machine time (net time at DOS > pro

Re: Missing Bracket

2002-10-22 Thread Greg Oliver
If you have no '{}'s in mid-line comments, you could - #!/usr/bin/perl -w use strict; my ($open, $close) = (0,0); while( <> ) { $open += () = $_ =~ m'{'g unless /^#/;; $close += () = $_ =~ m'}'g unless /^#/; } print "Opens: $open\nCloses: $close\n"; # bracket_check.pl < filename -G On T

time references

2002-10-18 Thread Greg Oliver
I am writing a program that will do a certain function every 5 seconds. Currently, I am testing the modulus of time() / 5 to do the function in a tight loop, but that seems pretty sloppy to me. Unfortunately, I do not know of any other ways. I have looked through all of the Time:: modules on

Re: time references

2002-10-18 Thread Greg Oliver
]> wrote: > How about: > > while (1) { > my $start = time; > # do what you need to do... > my $end = 5 - (time - $start); > sleep $end if $end > 0; > } > > James > > On Thursday, October 17, 2002, at 07:52 PM, Greg Oliver wrote: &g

Re: session id

2002-09-09 Thread Greg Oliver
http://www.perldoc.com/perl5.6.1/lib/CGI.html should get you what you need.. -G On Mon, 09 Sep 2002 19:18:43 + Mariusz K <[EMAIL PROTECTED]> wrote: > Hi:) > I want to be able to track the user as he goes from one pae to another. I > heard that sessionID are used for that purpose. I was t

Re: Hash of Hashes woes...

2002-09-04 Thread Greg Oliver
On Wed, 04 Sep 2002 15:21:37 -0700 "John W. Krahn" <[EMAIL PROTECTED]> wrote: > You should probably just return $newdata and assign it directly in the > foreach loop. > John > -- True, but the nature of the threads in this one, I do not get the result. One line beow in the example is: $pool->j

Re: Hash of Hashes woes...

2002-09-04 Thread Greg Oliver
> > # Main > > my $Results; > > this only declare a $Results scalar Sorry typo for the email! it is %Results > > # Initialized with 3 for every value > > # $Results{ $cty }{ $dom }{ $eng } = "3"; > > here, you are trying to use a %Results hash from $Results{ $cty }. > the '{ $dom }{ $eng }'

Hash of Hashes woes...

2002-09-04 Thread Greg Oliver
Hi, I am writing a script that initializes a %HoHoH while iterating through several items. This works correctly, and also retrieving the keys/values works correctly. I then call a subroutine that retrieves data and is SUPPOSED to update that same hash with the results. Unfortunately, when I