How to call chown on windows?

2004-11-27 Thread Siegfried Heintze
I'm still trying to install bugzilla by running the checksetup.pl on windows. According to the instructions, I edit the code to accommodate windows: my $webservergid = 'Administrator'; # getgrnam($my_webservergroup); # # chown needs to be called with a valid uid, not 0. $< returns

Re: Frowarding mail automatically through script

2004-11-27 Thread Anish Kumar K.
This is the program I use for my guest book.. however please look in the path you have installed send mail open(MAIL, "| /usr/lib/sendmail -oi -n -t"); By default it is in "/usr/sbin/sendmail"; Anish - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROT

Re: Frowarding mail automatically through script

2004-11-27 Thread anish
sub mail() { my $from="[EMAIL PROTECTED]"; my $to=$recipient; my $sendmailpath="/usr/sbin/sendmail"; open (SENDMAIL, "| $sendmailpath -t"); print SENDMAIL "Subject: From Guest Book $subject\n"; print SENDMAIL "From: $from\n"; print SENDMAIL "To: $to\n\n"; print SENDMAIL "$content\n\n"; c

Re: Reading large mbox files

2004-11-27 Thread Dan Jones
On Sun, 2004-11-28 at 04:09 +0100, Gunnar Hjalmarsson wrote: > Dan Jones wrote: > > > > local $/ = "\n\nFrom "; > > > > $_ = ; > > $_ =~ s/\n\nFrom $//; > > ProcMessage($_); > > > > while() { > > $_ =~ s/\n\nFrom $//; > > ProcMessage("From $_"); > > > > if(Pause() == 0) { > >

Re: Reading large mbox files

2004-11-27 Thread Gunnar Hjalmarsson
Dan Jones wrote: local $/ = "\n\nFrom "; $_ = ; $_ =~ s/\n\nFrom $//; ProcMessage($_); while() { $_ =~ s/\n\nFrom $//; ProcMessage("From $_"); if(Pause() == 0) { last; } } close MAILBOX; sub ProcMessage($){ my $message = shift; print "Message:\n $mess

Re: Reading large mbox files

2004-11-27 Thread Dan Jones
On Sat, 2004-11-27 at 23:07 +0100, Gunnar Hjalmarsson wrote: > Dan Jones wrote: > > The most obvious method is to set $/ to the regex /\n\nFrom / > > (messages in mbox format are seperated by a blank line and begin with > > a From line) and to read in email messages one at a time. > > From "perld

Problems installing CPAN perl modules

2004-11-27 Thread Matthias Kraatz
Hi, first, on my home computer under cygwin installing the modules works just fine. In contrast, the same task on a Sun (SunOS 5.9/sparc) gives me a headache. I don't have root access, so I define all the paths manually. In detail, I do perl Makefile.PL `cat ~/.perl_dirs` in the modules direc

Re: Reading large mbox files

2004-11-27 Thread Gunnar Hjalmarsson
Dan Jones wrote: The most obvious method is to set $/ to the regex /\n\nFrom / (messages in mbox format are seperated by a blank line and begin with a From line) and to read in email messages one at a time. From "perldoc perlvar": "Remember: the value of $/ is a string, not a regex." So that method

How to install Date::Parse for bugzilla on Windows 2003 Server with ActiveState Perl 5.6?

2004-11-27 Thread Siegfried Heintze
I'm trying to install bugzilla on windows. The instructions say I need to install Date::Parse and when I run the installation program it says I don't have Date::Parse installed. Below is my attempt to install Date::Parse: What am I doing wrong? Thanks, Siegfried C:\Perl\bin>ppm PPM

RE: Adding to a Hash

2004-11-27 Thread Graeme St. Clair
Thanks for the hint. What worked in the end was:- %s = ( qw( a 1 b 2 ), "3", "3", "4", "4", ); which is about as terse and clear as I'd been hoping for. Rgds, GStC. PS: The Llama line is actually a correction to an earlier edition. Goodness knows why it did

Re: Frowarding mail automatically through script

2004-11-27 Thread Mike Blezien
JupiterHost.Net wrote: vishwas bhakit wrote: i had written following script for sending mail automatically through PERL using "sendmail" program in the perl script. But its not workig. What may be the problem with it. It doesn't: - use strict; - use warnings; - check to see if the open() to se

RE: how to get count in DBI

2004-11-27 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : Charles K. Clarkson [CKC], on Saturday, November 27, 2004 at : 10:21 (-0600) thinks about: : : : Here's the method you presented. : : my $rows = $dbh->selectall_arrayref( : : 'SELECT sessionid FROM session' : : ); :

Re: Frowarding mail automatically through script

2004-11-27 Thread JupiterHost.Net
vishwas bhakit wrote: i had written following script for sending mail automatically through PERL using "sendmail" program in the perl script. But its not workig. What may be the problem with it. It doesn't: - use strict; - use warnings; - check to see if the open() to sendmail worked or not -

Reading large mbox files

2004-11-27 Thread Dan Jones
I'm looking to write a utility to do some processing on email messages stored in mbox format. Some mbox files can be quite large, hundreds of megs or perhaps gigs in size. Obviously, reading in the whole file at once isn't feasible. The most obvious method is to set $/ to the regex /\n\nFrom / (

Re: how to get count in DBI

2004-11-27 Thread Ing. Branislav Gerzo
Charles K. Clarkson [CKC], on Saturday, November 27, 2004 at 10:21 (-0600) thinks about: CKC> Here's the method you presented. CKC> my $rows = $dbh->>selectall_arrayref( CKC> 'SELECT sessionid FROM session' CKC> ); CKC> my $row_count = $dbh->do( CKC>

RE: how to get count in DBI

2004-11-27 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : Charles K. Clarkson [CKC], on Friday, November 26, 2004 at : 05:30 (-0600) has on mind: : : : It would be slower and less accurate. To use your : : suggestion would require another query on the database. : : That count might also not return the

Re: how to get count in DBI

2004-11-27 Thread Ing. Branislav Gerzo
Ing. Branislav Gerzo [IBG], on Saturday, November 27, 2004 at 15:20 (+0100) has on mind: as I see, I should use better benchmarking: http://uk.builder.com/webdevelopment/scripting/0,39026636,39220598-2,00.htm but that not changes my conclusion :) -- ...m8s, cu l8r, Brano. [I tawt I taw a B

Re: how to get count in DBI

2004-11-27 Thread Ing. Branislav Gerzo
Charles K. Clarkson [CKC], on Friday, November 26, 2004 at 05:30 (-0600) has on mind: CKC> It would be slower and less accurate. To use your CKC> suggestion would require another query on the database. CKC> That count might also not return the same count as is CKC> in "scalar @$rows" if the da

Re: Overridden methods

2004-11-27 Thread Michael S. E. Kraus
G'day Bob and all... :) > Your class is not an abstract class in this sense, as you can instantiate > objects of the class. This is the meaning that I have always used (coming > from C++). Ahh... but not if you can't run the method to instantiate it... :) (or at least it not returning a valid o

Frowarding mail automatically through script

2004-11-27 Thread vishwas bhakit
i had written following script for sending mail automatically through PERL using "sendmail" program in the perl script. But its not workig. What may be the problem with it. #!/usr/local/bin/perl $name = 'name'; $email = 'mail id'; open(MAIL, "| /usr/lib/sendmail -oi -n -t"); print MAIL < Thank Yo