Re: Unique Array Help?

2012-05-18 Thread Omega -1911
On Fri, May 18, 2012 at 5:07 AM, Rob Dixon wrote: > On 18/05/2012 02:09, Omega -1911 wrote: >> >> On Thu, May 17, 2012 at 7:58 PM, jbiskofski  wrote: >>> >>> On Thu, May 17, 2012 at 6:46 PM, Omega -1911<1911...@gmail.com>  wrote: While trying to create a script that generates a grap

Re: Unique Array Help?

2012-05-18 Thread Rob Dixon
On 18/05/2012 02:09, Omega -1911 wrote: On Thu, May 17, 2012 at 7:58 PM, jbiskofski wrote: On Thu, May 17, 2012 at 6:46 PM, Omega -1911<1911...@gmail.com> wrote: While trying to create a script that generates a graph, I am at a loss for a workable solution. What I need to be able to do in th

Re: Unique Array Help?

2012-05-17 Thread Omega -1911
On Thu, May 17, 2012 at 7:58 PM, jbiskofski wrote: > The easiest thing would be to rewrite your sql with an aggregate statement : > > SELECT employee_id,date,SUM(hours_wrkd) >  FROM data WHERE date >= $date_then AND date <= $date_now > GROUP BY empoyee_id,date > ORDER BY 3 > > cheers. > > - Jose f

Re: Unique Array Help?

2012-05-17 Thread jbiskofski
The easiest thing would be to rewrite your sql with an aggregate statement : SELECT employee_id,date,SUM(hours_wrkd) FROM data WHERE date >= $date_then AND date <= $date_now GROUP BY empoyee_id,date ORDER BY 3 cheers. - Jose from Mexico On Thu, May 17, 2012 at 6:46 PM, Omega -1911 <1911...@

Unique Array Help?

2012-05-17 Thread Omega -1911
Hello all - While trying to create a script that generates a graph, I am at a loss for a workable solution. What I need to be able to do in the code below is add the results from the select statement before pushing the data into an array. For example, the database contains the following data: EMP

Re: unique array

2004-07-03 Thread Randal L. Schwartz
> "Perl" == Perl Org <[EMAIL PROTECTED]> writes: Perl> Several people responded individually with comments like this. Perl> If the authors care, shouldn't they contact the ISP? I mean, I Perl> can't police the internet single-handedly. No, but you can have enough sense that if the ENTIRE WOR

Re: unique array

2004-07-02 Thread Jeff 'japhy' Pinyan
On Jul 2, perl.org said: >>From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, is >this really the best way to ensure an *ordered* list contains only unique >values? It seems like it could/should be easier. I wonder why the >examples don't use my. If you want a more transparent ap

Re: Copyright Violation -> RE: unique array

2004-07-02 Thread Wiggins d Anconia
> Hmm, if I hadn't posted the link at least one person would have told me to > check the docs. But I guess there are more useless responses if I do post the > link. So next time please don't ask me to check the docs. > There are free docs available, I don't think anyone has ever suggested check

Re: unique array

2004-07-02 Thread Randy W. Sims
perl.org wrote: Sorry, I didn't mean ordered as in sorted, I meant ordered as in I don't want to lose whatever order their in. But thanks for the tip. Oops. There's been a lot of discussions on sorting lately, and I guess I mis-associated. Anyway, my previous arguement still applies. You have to

Re: Copyright Violation -> RE: unique array

2004-07-02 Thread u235sentinel
Bakken, Luke wrote: How nice of you to decide this for O'Reilly. I think the local grocery store has made enough money for today, and I think I'll go in and take an apple. Why just an apple? Why not a big fat steak? It doesn't have to end there also, maybe I can come back for dessert later :-)

Re: Copyright Violation -> RE: unique array

2004-07-02 Thread perl.org
Hmm, if I hadn't posted the link at least one person would have told me to check the docs. But I guess there are more useless responses if I do post the link. So next time please don't ask me to check the docs. Why doesn't someone go police google then - they gave me the link. -- To unsubscr

Copyright Violation -> RE: unique array

2004-07-02 Thread Bakken, Luke
> On Fri, 2 Jul 2004 14:32:49 -0400 , Bob Showalter wrote > > perl.org wrote: > > > From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, > > > > Methinks that stuff is illegally posted copyrighted information. > > Several people responded individually with comments like > this. If

Re: unique array

2004-07-02 Thread Randy W. Sims
perl.org wrote: On Fri, 2 Jul 2004 14:32:49 -0400 , Bob Showalter wrote perl.org wrote: From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, Methinks that stuff is illegally posted copyrighted information. Several people responded individually with comments like this. If the authors

RE: unique array

2004-07-02 Thread Bob Showalter
perl.org wrote: > On Fri, 2 Jul 2004 14:32:49 -0400 , Bob Showalter wrote > > perl.org wrote: > > > From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, > > > > Methinks that stuff is illegally posted copyrighted information. > > Several people responded individually with comments li

RE: unique array

2004-07-02 Thread perl.org
On Fri, 2 Jul 2004 14:32:49 -0400 , Bob Showalter wrote > perl.org wrote: > > From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, > > Methinks that stuff is illegally posted copyrighted information. Several people responded individually with comments like this. If the authors care

Re: unique array

2004-07-02 Thread perl.org
Sorry, I didn't mean ordered as in sorted, I meant ordered as in I don't want to lose whatever order their in. But thanks for the tip. On Fri, 02 Jul 2004 14:26:02 -0400, Randy W. Sims wrote > perl.org wrote: > >>From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, is this > > really

RE: unique array

2004-07-02 Thread Bob Showalter
perl.org wrote: > From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, Methinks that stuff is illegally posted copyrighted information. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: unique array

2004-07-02 Thread Randy W. Sims
perl.org wrote: From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, is this really the best way to ensure an *ordered* list contains only unique values? It seems like it could/should be easier. I wonder why the examples don't use my. %seen = (); @uniq = (); foreach $item (@list) {

unique array

2004-07-02 Thread perl.org
>From http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch04_07.htm, is this really the best way to ensure an *ordered* list contains only unique values? It seems like it could/should be easier. I wonder why the examples don't use my. %seen = (); @uniq = (); foreach $item (@list) { unless ($se