Re: Request for code feedback

2009-06-13 Thread Chap Harrison
On Jun 13, 2009, at 4:07 PM, David Christensen wrote: Chas. Owens wrote: the only True Way is to use tabs for indent levels and spaces for alignment, this allows the user to set his or her indentation to whatever he or she wants by modifying how many spaces a tab displays. [72 columns maximum

RE: Request for code feedback

2009-06-13 Thread David Christensen
Chas. Owens wrote: > header comment blocks are wastes of space, that is what good source > control and documentation is for. > [author information] > [copyright] That stuff used to be mandatory when I coded for a living. Has the industry changed that much since then? >> 2. I don't see commen

Re: Request for code feedback

2009-06-13 Thread Chas. Owens
On Sat, Jun 13, 2009 at 07:30, John W. Krahn wrote: > Chas. Owens wrote: >> >> On Sat, Jun 13, 2009 at 03:48, John W. Krahn wrote: >>> >>> Chas. Owens wrote: On Fri, Jun 12, 2009 at 20:24, Steve Bertrand wrote: > > my $hours_used   = ($hours_lookup->get_month_hours($dbh, $username

Re: Copying a named hash to an anonymous hash

2009-06-13 Thread Chap Harrison
On Jun 13, 2009, at 1:54 AM, Chas. Owens wrote: If you need to make a deep copy a data structure you should use the dclone function from the Storable[1] module: use Storable qw/dclone/; Thanks! I did find something Randal Schwartz had posted somewhere that did the trick for me - sub de

RE: Please, I need help!!!

2009-06-13 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -Original Message- > From: Phillip [mailto:fibbe...@gmx.net] > Sent: Thursday, June 11, 2009 12:00 > To: beginners@perl.org > Subject: Please, I need help!!! > > Hallo @ all, > > i am new in this domain(perlscript) and i have a question.i have a > array,i sort it,i get the last eleme

Re: Request for code feedback

2009-06-13 Thread John W. Krahn
Chas. Owens wrote: On Sat, Jun 13, 2009 at 03:48, John W. Krahn wrote: Chas. Owens wrote: On Fri, Jun 12, 2009 at 20:24, Steve Bertrand wrote: my $hours_used = ($hours_lookup->get_month_hours($dbh, $username, $search_date, 'dialup')); Why are you creating a list here? Just say Do yo

Re: Request for code feedback

2009-06-13 Thread Chas. Owens
On Sat, Jun 13, 2009 at 03:48, John W. Krahn wrote: > Chas. Owens wrote: >> >> On Fri, Jun 12, 2009 at 20:24, Steve Bertrand wrote: >>> >>> my $hours_used   = ($hours_lookup->get_month_hours($dbh, $username, >>> $search_date, 'dialup')); >> >> Why are you creating a list here?  Just say > > Do you

Re: Request for code feedback

2009-06-13 Thread John W. Krahn
Chas. Owens wrote: On Fri, Jun 12, 2009 at 20:24, Steve Bertrand wrote: my $hours_used = ($hours_lookup->get_month_hours($dbh, $username, $search_date, 'dialup')); Why are you creating a list here? Just say Do you mean the list ($dbh, $username, $search_date, 'dialup')? I think that i