Re: sendmail question

2005-03-09 Thread Wiggins d'Anconia
Ted Zeng wrote: Hi, When I used perl on Windows, I used Mail:sender module to send emails, with attachments. Now I realized that Mac OS X doesn't have this installed (I installed it on Windows myself) and it has sendmail as a UNIX tool, which can be an option. My question is: Do you use

Re: sendmail question

2005-03-09 Thread John Delacour
At 9:42 am -0800 9/3/05, Ted Zeng wrote: Do you use sendmail to send emails in your perl tools? Or use a Perl email module to send emails? Which way you prefer? Net::SMTP JD

Install module problem with CPAN

2005-03-09 Thread Ted Zeng
Hi, I tried to install a module with CPAN. I use the command perl -MCPAN -e 'install Mail::Sender' But I got the error: Writing Makefile for Mail::Sender -- NOT OK But when I cd to the folder and do make install And the module was isntalled. I don't know why I had the failure. When I tried to

Re: sendmail question

2005-03-09 Thread Ted Zeng
Thanks for all the replies. It looks like I should go with a Perl module. I installed Mail:Sender and it works fine now. I tried a few Mail modules a few years back on Windows and Mail:Sender is the one that I found easy to use and the attachment works. ted

Re: Install module problem with CPAN

2005-03-09 Thread Ted Zeng
I did. Sorry to forget to copy that. That is why it puzzled me. When I cd to the folder and did make install I don't need to use sudo and it worked. ted On Mar 9, 2005, at 1:32 PM, Sherm Pendley wrote: On Mar 9, 2005, at 3:29 PM, Ted Zeng wrote: I tried to install a module with CPAN. I use the

First CGI Setup

2005-03-09 Thread Mike Lesser
Hi all. I'm busy setting up to run (okay, play with) CGIs. So for, not so great. According to the Apache error logs, I'm connecting okay, but something seems to be off.i've been reading up on the config issues, and I've worked thru some of them, but frankly I'm out of my element, and concerned

Re: First CGI Setup

2005-03-09 Thread Sherm Pendley
On Mar 9, 2005, at 5:03 PM, Mike Lesser wrote: # To use CGI scripts: # #AddHandler cgi-script .cgi That doesn't do much when it's commented out. ;-) sherm-- Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org

Re: First CGI Setup

2005-03-09 Thread Ted Zeng
I thought by default OS X has the cgi setup automatically. I didn't have to do anything, just turned on the web server. And put the perl script in the CGI-EXECUTABLES folder and it works. ted On Mar 9, 2005, at 2:03 PM, Mike Lesser wrote: Hi all. I'm busy setting up to run (okay, play with) CGIs.

Re: First CGI Setup

2005-03-09 Thread Sherm Pendley
On Mar 9, 2005, at 5:29 PM, Ted Zeng wrote: I thought by default OS X has the cgi setup automatically. I didn't have to do anything, just turned on the web server. And put the perl script in the CGI-EXECUTABLES folder and it works. That works, yes - but it's not what Mike wants to do. On many

Sorting a more efficient way

2005-03-09 Thread Mark Wheeler
Hi, First, thanks again for all who helped me with sorting dates with Date::Manip. That's working great. I have another question. Below is a sample of a larger script. I have it working great, but I'm pretty sure the sorting and manipulation of file data is inefficient. What I'm asking is, how

Re: Sorting a more efficient way

2005-03-09 Thread James E Keenan
Mark Wheeler wrote: Hi, First, thanks again for all who helped me with sorting dates with Date::Manip. That's working great. I have another question. Below is a sample of a larger script. I have it working great, but I'm pretty sure the sorting and manipulation of file data is inefficient.

Re: Sorting a more efficient way

2005-03-09 Thread Sherm Pendley
On Mar 9, 2005, at 7:30 PM, Mark Wheeler wrote: I have another question. Below is a sample of a larger script. I have it working great, but I'm pretty sure the sorting and manipulation of file data is inefficient. What I'm asking is, how do I make the code more efficient? Devel::DProf is a

Re: Sorting a more efficient way

2005-03-09 Thread David Jantzen
You've nearly got an unrolled Schwartzian Transform (http://perlmonks.org/index.pl?node_id=9108). Try this: #!/usr/bin/perl use strict; use warnings; use Date::Manip; # Read data into @current_deals my @current_deals = (DATA); # First make a lookup table from the