RE: Output PERL to E-mail

2003-01-03 Thread Danny Miller
Well, here's how I do it...using sendmail on a *nix machine. my $MAILFROM = '[EMAIL PROTECTED]'; my $MAILSUBJECT = "subject goes here"; my $MAILTO = '[EMAIL PROTECTED],[EMAIL PROTECTED]'; # or "user1\@domain.com" open(SENDMAIL, "| /usr/lib/sendmail $MAILTO") || die; print(SENDMAIL "From: $MAILFR

RE: Help with Auto Refresh

2002-12-05 Thread Danny Miller
Did you try putting in your header? 120 = 2 minutes...i.e. the number is in seconds. Regards, Danny -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: Help with Auto Refresh Hi I have a simple

RE: Difference between $count++ and ++$count

2002-12-06 Thread Danny Miller
Well, it depends how you use them. Strictly speaking, ++$count is faster than $count++. say $count = 5 $num1 = $count++; #$num1 would = 5 and $count would = 6 $num2 = ++$count; #$num2 and $count would equal 6 Regards, Danny -Original Message- From: Mystik Gotan [mailto:[EMAIL PROTECTE

RE: String to Array

2002-12-16 Thread Danny Miller
Not sure if you want to keep the commas in your array, i.e. $array[$0] = 1, But, if you don't, you can do this; $string = "1, 2, 3, 4, 5"; @array = split /,/ , $string; print "@array\n"; If you want to keep the commas, simply replace /,/ with /\s/ Regards, Danny -Original Message- From

RE: cutting a string

2003-09-01 Thread Danny Miller
As long as the format of what you want (file.txt) remains the same you could do the following: ($stuffattheend) = $string =~ /\/(\w+\.\w+)$/; Danny -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 01, 2003 11:41 AM To: Perl Beginners Subject:

RE: How to draw lines with different line width?

2003-09-30 Thread Danny Miller
>I am usiing GD::Graph::lines to draw a graph with multiple lines. How do I >specify so that lines can be of different width? > >yi Set the line_width variable. E.g. line_width => [2] prints a thicker line than 1, etc... Danny - Do you Yahoo!? The New Yahoo! Sh

RE: How to draw lines with different line width?

2003-10-03 Thread Danny Miller
It's settable per line... line_width => [1, 2, 3], 1 is the default weight. HTH, Danny -Original Message- From: Yi Chu [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:37 PM To: Danny Miller; [EMAIL PROTECTED] Subject: RE: How to draw lines with differ

GD::Graph::bars - multiple x-axis data sets

2009-01-14 Thread Danny Miller
Hi, I've got two sets of data I'm displaying in a bar graph. I'd like to use two different colors for the different data. I'm not sure how to do this. My code looks like: @xdata1; # bunch of x values @ydata1; # bunch of corresponding y values @xdata2; # second set of x values I'd like to plot

Re: GD::Graph::bars - multiple x-axis data sets

2009-01-15 Thread Danny Miller
On Thu, Jan 15, 2009 at 10:13 PM, Raymond Wan wrote: > > Hi Danny, Howdy. > Danny Miller wrote: >> >> Hi, I've got two sets of data I'm displaying in a bar graph. I'd like >> to use two different colors for the different data. I'm not s

Re: Easiest way to graph results

2009-05-06 Thread Danny Miller
GD::Graph is pretty simple. http://search.cpan.org/~bwarfield/GDGraph-1.44/ There's several options out there. Danny On Wed, May 6, 2009 at 8:05 AM, Steve Bertrand wrote: > Hi all, > > This is more of a request for recommendation than it is a 'howto' type > question. > > A couple of years ago,