Re: timer/display

2001-07-09 Thread Christian Campbell
[EMAIL PROTECTED] wrote: > I need to come up with a simple status indicator of some sort. I have in > mind a "spinner." You've seen them before I'm sure, where there's a '-' > then it changes to '\' then '|' then '/' then '-' and so forth, so that it [...] Check this thread:

Re: Spinning Wheel!!!

2001-06-15 Thread Christian Campbell
Peter Scott wrote: > > If I print something on screen, How Do I go put the cursor back to > >where I printed and change what I printed to something else. [...] > This question was answered on this list earlier today, but needs a bit of a > delay, and make sure stdout is unbuffered: Thanks

Re: Spinning Wheel!!!

2001-06-15 Thread Christian Campbell
George S Pereira wrote: > If I print something on screen, How Do I go put the cursor back to > where I printed and change what I printed to something else. > > I'll illustrate further. > > I wanted to create the spinning wheel with ('\','/','-' and '|') > but I don't know

Re: flock

2001-06-04 Thread Christian Campbell
Nichole Bialczyk wrote: > i'm curious as to how secure flock is. if the file is locked and another > user tries to access it, does it wait or does it kick them off? It depends. The main thing to consider is that in general file locking is a voluntary sort of arrangement. When you use perl's flock

Re: using print << within subroutines

2001-06-03 Thread Christian Campbell
[EMAIL PROTECTED] wrote: > within my code. it works like a charm. however, when i try: > > sub header { > print << head; > Content-type: text/html\n\n > > Control Panel > > head > } > > is this not working because of a fault in my syntax? or is this not > possible withi

Re: Counter problem

2001-06-03 Thread Christian Campbell
Luinrandir Hernson wrote: > ## opens, reads number of hits and closes the file acording to the web page its >called from. > open(FILE,"/home/homepage/cgi-bin/data/$file"); > flock (FILE, 2); > $count = ; > flock (FILE, 8); > close(FILE); > > ## adds a hit to the variable > $count++; > > ## open

Re: one last thought on printf

2001-06-02 Thread Christian Campbell
David Gilden wrote: > ($sec, $min, $hour, $wday, $month, $year) = (localtime)[0..5]; The slice is not needed; ($sec, $min, $hour, $wday, $month, $year) = localtime; is fine. (Extra elements in a list assignment are ignored.) > 3: $month++; # perl counts from -1 on occasion I think y

Re: Large Data - POST

2001-06-01 Thread Christian Campbell
David, David E Culp - RR wrote: > Is there a way to perform an automatic POST ? This is a pretty wide-open question. I think the most common way to handle POSTing is via HTTP::Request (see its manpage and the other LWP manpages). Most uses are essentially trivial. I don't know what you mean by a

Re: printf and other stuff

2001-06-01 Thread Christian Campbell
David Gilden wrote: > Is there a way to combine the last two statements? [...] > $sort_type = ($sort_order) ? 'Newest First' : 'Oldest First'; > # are the () optional? > > print $sort_type; print $sort_order ? 'Newest First' : 'Oldest First'; or print( $sort_order ? 'Newest Fi

Re: Comparing time

2001-06-01 Thread Christian Campbell
[EMAIL PROTECTED] wrote: > I try to write a program that will executes a command on a specific time > inputted by a user. I don't know how you can compare the time of the user > with the computer clock ? > > Can anyone help me to do the. I'm a beginner. FWIW, if you are on a unix system, you mig