Re: posix shared memory

2008-03-10 Thread Nei Kai
Hi, Tom 2008/3/11, Tom Phoenix <[EMAIL PROTECTED]>: > On Mon, Mar 10, 2008 at 5:44 PM, Nei Kai <[EMAIL PROTECTED]> wrote: > > > I found a mmap module in CPAN, called Sys::Mmap, whose > > version is V0.13 and is not updated since 2002. > > So I am not sure if it is supposed to be used nowada

Re: posix shared memory

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 5:44 PM, Nei Kai <[EMAIL PROTECTED]> wrote: > I found a mmap module in CPAN, called Sys::Mmap, whose > version is V0.13 and is not updated since 2002. > So I am not sure if it is supposed to be used nowadays. What happened when you tried it? > And why doesn't perl tr

posix shared memory

2008-03-10 Thread Nei Kai
hi, guys I have been searched for posix shared memory using mmap or something likewise in perl for a while. My version of perl is 5.8.7. It seems perl only supports SysV shared memory model, but the embedded system I am supposed to use does not support SysV. I found a mmap module in CPAN, called S

Re: CGI problem fith file URIs

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 12:17 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > In what way is opening a file from a browser a CGI problem? Maybe you missed where the OP said "I am developing a help viewer app with CGI pm." Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe,

Re: CGI problem fith file URIs

2008-03-10 Thread Gunnar Hjalmarsson
Tom Phoenix wrote: On Mon, Mar 10, 2008 at 7:50 AM, Mike Martin <[EMAIL PROTECTED]> wrote: However when I try to access the file ie: with file://usr/share/doc/somefile.html I cannot If you're doing CGI programming with Perl, you should be asking your questions about that in the beginners

Re: CGI problem fith file URIs

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 7:50 AM, Mike Martin <[EMAIL PROTECTED]> wrote: > However when I try to access the file ie: with > file://usr/share/doc/somefile.html I cannot Now, you know that a file URL refers to a file that is available to the machine that has the browser, right? It's not generally

Re: Filehandles in a socket server

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 7:43 AM, Jonathan Mast <[EMAIL PROTECTED]> wrote: > What benefit does flushing have? Would it help prevent memory > leaks as per the above scenario or what? Flushing gets the data out right away, in case there's anybody waiting for it. In the case of log files, it means

CGI problem fith file URIs

2008-03-10 Thread Mike Martin
I am developing a help viewer app with CGI pm. However I have hit a roadblocjk with the last part of the program This searches the /usr/share/doc heirarchy for html files and presents a dropdown list. However when I try to access the file ie: with file://usr/share/doc/somefile.html I cannot I ha

Re: Filehandles in a socket server

2008-03-10 Thread Jonathan Mast
Yeah I'm leaving it alone for now. The socket server receives input episodically and could be invoked thousands of times per minute. But typically it 2 or 3 times per hour. It just seems to be a design flaw to do the repeated open/closing stuff inside the while loop. But something that just cam

Re: Filehandles in a socket server

2008-03-10 Thread Rob Dixon
Jonathan Mast wrote: > We have a socket server that, in addition to serving data, also writes logging statements to a file. My question concerns the correctness of how it accesses the log file. The script is running continuously and all the log file IO stuff is inside the main 'while' loop. The

Re: Filehandles in a socket server

2008-03-10 Thread Chas. Owens
On Mon, Mar 10, 2008 at 10:08 AM, Jonathan Mast <[EMAIL PROTECTED]> wrote: > We have a socket server that, in addition to serving data, also writes > logging statements to a file. > > My question concerns the correctness of how it accesses the log file. The > script is running continuously and

Re: Filehandles in a socket server

2008-03-10 Thread John W. Krahn
Jonathan Mast wrote: We have a socket server that, in addition to serving data, also writes logging statements to a file. My question concerns the correctness of how it accesses the log file. The script is running continuously and all the log file IO stuff is inside the main 'while' loop. The f

Filehandles in a socket server

2008-03-10 Thread Jonathan Mast
We have a socket server that, in addition to serving data, also writes logging statements to a file. My question concerns the correctness of how it accesses the log file. The script is running continuously and all the log file IO stuff is inside the main 'while' loop. The file is opened, written

Re: how and where to install module

2008-03-10 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi, Hello, I wish to use the module "shuffle" from cpan. I have downloaded perl to c:\perl so where do I install the module to? If you have the List::Util module installed, and you should as it is a Standard Module, then you could use List::Util::shuffle. perldoc

Re: extracting values from split without using an array

2008-03-10 Thread Chas. Owens
On Mon, Mar 10, 2008 at 1:49 AM, Rodrick Brown <[EMAIL PROTECTED]> wrote: snip > For example if you we're only interested in fields 1,3, and 5 you > could do something like > ($field1,undef,$field3,undef,$field5) = split/.../; > > Or you can do something like (split//...)[3] snip You can also