Re: [Boston.pm] Subroutine definition

2007-09-13 Thread Ben Tilly
On 9/12/07, Bob Rogers [EMAIL PROTECTED] wrote: On 9/11/07, Bob Rogers [EMAIL PROTECTED] wrote: From: Ben Tilly [EMAIL PROTECTED] [...] That said, know your audience. Using functional techniques in Perl should be a deliberate decision. In many programming groups, I'd

Re: [Boston.pm] Subroutine definition

2007-09-12 Thread Ricker, William
Am I reading this right? Are you actually defending the lowest common denominator of language design? The paragraph above Not language design but coding in an appropriate subset. English and Perl are both special because TIMTOWTDI. My personal toolkit at the office is a more HOPish

Re: [Boston.pm] Subroutine definition

2007-09-12 Thread Bob Rogers
From: Ben Tilly [EMAIL PROTECTED] Date: Wed, 12 Sep 2007 06:40:40 -0700 On 9/11/07, Bob Rogers [EMAIL PROTECTED] wrote: From: Ben Tilly [EMAIL PROTECTED] Date: Tue, 11 Sep 2007 14:18:57 -0700 On 9/11/07, Palit, Nilanjan [EMAIL PROTECTED] wrote: [...]

Re: [Boston.pm] Subroutine definition

2007-09-11 Thread Palit, Nilanjan
-Original Message- From: Ronald J Kimball [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 3:01 PM To: Palit, Nilanjan Cc: boston-pm@mail.pm.org Subject: Re: [Boston.pm] Subroutine definition On Mon, Sep 10, 2007 at 11:51:56AM -0700, Palit, Nilanjan wrote: I have to do some format

Re: [Boston.pm] Subroutine definition

2007-09-11 Thread Ben Tilly
On 9/11/07, Palit, Nilanjan [EMAIL PROTECTED] wrote: So I tried this using the following code, where %format_conv has an entry for each type of conversion needed with a list of items: [...] When I run it, the 'defined' part works fine, but I get an error on the last line: Can't use string

Re: [Boston.pm] Subroutine definition

2007-09-11 Thread Palit, Nilanjan
performance wise.) Thanks, -Nilanjan -Original Message- From: Ben Tilly [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 12:52 PM To: Palit, Nilanjan Cc: boston-pm@mail.pm.org Subject: Re: [Boston.pm] Subroutine definition On 9/11/07, Palit, Nilanjan [EMAIL PROTECTED] wrote: So I

Re: [Boston.pm] Subroutine definition

2007-09-11 Thread Ben Tilly
On 9/11/07, Palit, Nilanjan [EMAIL PROTECTED] wrote: [...] It is very bad form to use map as a looping construct. Can you elaborate why it is a bad form: readability, performance, ...? Just want to understand the underlying reason. (To me, both the for map inline forms appear to be the same

Re: [Boston.pm] Subroutine definition

2007-09-11 Thread Bob Rogers
From: Ben Tilly [EMAIL PROTECTED] Date: Tue, 11 Sep 2007 14:18:57 -0700 On 9/11/07, Palit, Nilanjan [EMAIL PROTECTED] wrote: [...] It is very bad form to use map as a looping construct. Can you elaborate why it is a bad form: readability, performance, ...? Just want

Re: [Boston.pm] Subroutine definition

2007-09-10 Thread Ronald J Kimball
On Mon, Sep 10, 2007 at 11:51:56AM -0700, Palit, Nilanjan wrote: I have to do some format conversions, so I'm defining subroutines like sub FormatConv_X2Y(). At this point I have only a few of the format conversions defined I haven't gone through the entire dataset to know all the format

Re: [Boston.pm] Subroutine definition

2007-09-10 Thread Shlomi Fish
On Monday 10 September 2007, Palit, Nilanjan wrote: I have to do some format conversions, so I'm defining subroutines like sub FormatConv_X2Y(). At this point I have only a few of the format conversions defined I haven't gone through the entire dataset to know all the format conversions

Re: [Boston.pm] Subroutine definition

2007-09-10 Thread Palit, Nilanjan
Ronald, Thanks, that works great! -Nilanjan -Original Message- From: Ronald J Kimball [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 3:01 PM To: Palit, Nilanjan Cc: boston-pm@mail.pm.org Subject: Re: [Boston.pm] Subroutine definition On Mon, Sep 10, 2007 at 11:51:56AM

Re: [Boston.pm] Subroutine definition

2007-09-10 Thread Ted Zlatanov
On Mon, 10 Sep 2007 15:00:30 -0400 Ronald J Kimball [EMAIL PROTECTED] wrote: RJK On Mon, Sep 10, 2007 at 11:51:56AM -0700, Palit, Nilanjan wrote: I have to do some format conversions, so I'm defining subroutines like sub FormatConv_X2Y() ... RJK Other options include: RJK Creating a