sessions

2005-10-31 Thread Adriano Allora
hi to all, I use session (CGI::Sessions) to record some data in a textual search-engine (CQP). I have this problem: I need to destroy a session before starting the new one, but I cannot. actually I wrote this code: $qualecookie = $pagina-cookie(CGIRICERCA); if($qualecookie) {

How to change the Owner of a file

2005-10-31 Thread Rakesh Mishra
Hi folks Can any body tell me how to change the owner of a file ?? I have written this script ... unless (chown $uid , $gid , $filename) { die chown failed :$!; } this code will give me the error you can't change permission denied can any body tell me , how to over come this error

Transforming HoA into AoH

2005-10-31 Thread Gundala Viswanath
Dear Sirs, I want to convert a HoA into AoH. Basically what it does is to create a distinct hash for each pair of array element that comes from different keys (see the example below). Please also note that the size of the hash and array maybe varying in the input HoA. And also note that the

Re: How to change the Owner of a file

2005-10-31 Thread Dan Klose
On Mon, 2005-10-31 at 13:45 +0530, Rakesh Mishra wrote: Hi folks Hello, Can any body tell me how to change the owner of a file ?? I have written this script ... unless (chown $uid , $gid , $filename) { die chown failed :$!; } this code will give me the error you can't

Re: How to change the Owner of a file

2005-10-31 Thread gustav
Hi folks Can any body tell me how to change the owner of a file ?? I have written this script ... unless (chown $uid , $gid , $filename) { die chown failed :$!; } this code will give me the error you can't change permission denied can any body tell me , how to over come this

Re: Transforming HoA into AoH

2005-10-31 Thread John W. Krahn
Gundala Viswanath wrote: Dear Sirs, Hello, I want to convert a HoA into AoH. Basically what it does is to create a distinct hash for each pair of array element that comes from different keys (see the example below). Please also note that the size of the hash and array maybe varying in

Re: Transforming HoA into AoH

2005-10-31 Thread Xavier Noria
On Oct 31, 2005, at 9:56, Gundala Viswanath wrote: Here is the example, given this HoA: my $HoA = { 'flintstones' = [ fred-1 foo-2, barney-1 bar-2 ], 'jetsons' = [ george-1 foo-2, jane-1 bar-2], }; How can I convert them to an AoH my $AoH = [ # Desired results. { 'flinstones' = fred-1

Re: Transforming HoA into AoH

2005-10-31 Thread Xavier Noria
On Oct 31, 2005, at 12:34, Xavier Noria wrote: sub HoA_to_AoH { my ($HoA) = @_; my @keys = keys %{$HoA}; return [] if not @keys; my @AoH = (); my $nkeys = @keys; my $nvals = @{$HoA-{$keys[0]}}; my $iter = indexes($nvals, $nkeys); while (my $idxs = $iter-()) {

Re: Transforming HoA into AoH

2005-10-31 Thread Gundala Viswanath
Hi John, Thanks a lot for the answer. But your code gives this instead: $VAR1 = [ { '2,3,jetsons' = 'george-1 foo-2' }, { '2,3,jetsons' = 'jane-1 bar-2' }, { '1,2,flintstones' = 'fred-1 foo-2' }, { '1,2,flintstones' = 'barney-1 bar-2' } ]; Please correct me if I'm wrong in understanding your code

Re: How to change the Owner of a file

2005-10-31 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Hi folks Hello, Can any body tell me how to change the owner of a file ?? I have written this script ... unless (chown $uid , $gid , $filename) { die chown failed :$!; } chown $uid, $gid, $filename or die chown failed: $!; this code will give me the

Re: How to change the Owner of a file

2005-10-31 Thread Shawn Corey
Rakesh Mishra wrote: Hi folks Can any body tell me how to change the owner of a file ?? I have written this script ... unless (chown $uid , $gid , $filename) { die chown failed :$!; } this code will give me the error you can't change permission denied can any body tell me , how to

How to detect if the other end of the TCP connection has gone offline

2005-10-31 Thread Karjala
I'm writing a simple client-server application, and I'm trying to find a way to tell if the other end of an open TCP connection has gone offline. I heard that with C you can send a packet of data and check if an ACK packet comes back. If it doesn't then the connection is closed. But how can

Re: How to change the Owner of a file

2005-10-31 Thread Chris Devers
On Mon, 31 Oct 2005, Shawn Corey wrote: Yes, you must the the recipient of the change, unless you have superuser privileges. In other words, you must be $uid. This is because many UNIX systems have quotas on how much data you can store. What?? That's hardly why this constraint exists. If

Re: How to detect if the other end of the TCP connection has gone offline

2005-10-31 Thread Jeff Pang
On client side, you can write: $sock-shutdown(1); to send an EOF to remote server. When the server receive the EOF,it will end of writing socket to client,and send back an EOF to client.At this point,the socket talks between client and server have finished. 2005/10/31, Karjala [EMAIL

Perl Compile problems..

2005-10-31 Thread Travis Schwenke
I am new to Linux and trying to use some modules (even CGI.pm) and compile them for the Apache server I am playing with (educational purposes). I am running Mandrivia 2006.. I am trying to compile a couple of modules and with both of them I get the same error. I do: perl Makefile.PL make

Re: How to detect if the other end of the TCP connection has gone offline

2005-10-31 Thread Bob Showalter
Karjala wrote: I'm writing a simple client-server application, and I'm trying to find a way to tell if the other end of an open TCP connection has gone offline. If the other side has closed its end of the connection, you detect this by reading from the socket and receiving EOF (0 bytes read),

Re: How to change the Owner of a file

2005-10-31 Thread Shawn Corey
Chris Devers wrote: What?? That's hardly why this constraint exists. If anyone can make changes to any other account's files, then there's no point in having ownership constraints at all. Of course. I was being facetious. The new version of chown prevents what? New is a relative term.

Satya Sai is out of the office.

2005-10-31 Thread Satya_Sai
I will be out of the office starting 10/31/2005 and will not return until 11/07/2005. I will respond to your message when I return. Please contact [EMAIL PROTECTED] or call DBA Hotline at 4477 for DBA assisstance. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Perl Compile problems..

2005-10-31 Thread Travis Schwenke
A. Sorry if the post shows up multiple times. First time using news from this machine. Setup was messed, but I think they might have made it through once I fixed it. B. I FIGURED it out! Running from a FAT32 drive and the directory/filename CASE was incorrect causing the files to not be

Re: How to change the Owner of a file

2005-10-31 Thread Jay Savage
We're getting a little off topic here, but this is an interesting discussion, and I think tangentially related: part of good programming is understanding your security model, so... On 10/31/05, Chris Devers [EMAIL PROTECTED] wrote: On Mon, 31 Oct 2005, Shawn Corey wrote: Yes, you must the the

Mail::Mailer

2005-10-31 Thread Matthew Sacks
Trying to use Mail::Mailer, in the sample code below. i) if I put -T on the first line invoking Perl, I get an error like too late for -T option ? ii) The program runs but the mail never arrives. The eval block checks always succeed. Where is the mail going? -matthew sacks

How to forward message to another number

2005-10-31 Thread K.Moeng
Hello. I would like to forward the messages that get recived by this programme and send them to a different number. Now how do i do that without sending to the person who sent the message. Say the number is 26771445566. Plus how can i make sure that the message is not empty from the sender.