Re: [Boston.pm] module introspection

2011-08-09 Thread Palit, Nilanjan
-Original Message- From: Tom Metro Sent: Monday, August 08, 2011 12:48 PM Subject: [Boston.pm] module introspection I have a command line utility I am developing that I'd like to be extendable with additional verbs such that you can do: command verb ...args... And I'd like the

Re: [Boston.pm] Perl memory profiling

2011-05-19 Thread Palit, Nilanjan
From: Tom Metro [mailto:tmetro-boston...@vl.com] Sent: Thursday, May 19, 2011 5:38 PM Subject: Re: [Boston.pm] Perl memory profiling I asked the same question back in March. See: http://thread.gmane.org/gmane.comp.lang.perl.perl-mongers.boston/5266 Thanks for the pointer. Reading through it

[Boston.pm] Perl memory profiling

2011-05-18 Thread Palit, Nilanjan
Is there a way to profile a perl program's memory from within the program? Specifically, I'd like to take snapshots of the memory usage as various data structures within the program are created/freed. Thanks, -Nilanjan ___ Boston-pm mailing list

Re: [Boston.pm] Comic strip

2011-03-25 Thread Palit, Nilanjan
Check this one out ... I had the fortune to listen to John Cohn talk at a conference last year. An IBM Fellow, he is passionate about promoting science/engineering education for our kids in school and getting them excited about doing engineering, which is why he created this video. He is a

Re: [Boston.pm] Csv in, beautiful chart out ?

2010-11-05 Thread Palit, Nilanjan
Gnuplot -Nilanjan -Original Message- From: boston-pm-bounces+nilanjan.palit=intel@mail.pm.org [mailto:boston-pm-bounces+nilanjan.palit=intel@mail.pm.org] On Behalf Of Greg London Sent: Friday, November 05, 2010 11:47 AM To: Boston-pm@mail.pm.org Subject: [Boston.pm] Csv in,

[Boston.pm] Perl-based (preferably) scriptable web album software/modules

2010-10-13 Thread Palit, Nilanjan
For hosting personal photo/video albums on the web there are various options out there like Google Picasa and the like. However, I would like to build my own web photo albums to post them on my own web site. I know that I can link to Picasa web albums from my site but that's not what I'm

[Boston.pm] Primality regex

2010-08-16 Thread Palit, Nilanjan
Pretty cool! http://montreal.pm.org/tech/neil_kandalgaonkar.shtml -Nilanjan ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

[Boston.pm] Text to slides

2010-05-11 Thread Palit, Nilanjan
A while back I seem to remember a discussion in this forum on a Perl utility to convert hierarchical (or marked up) text to slides. If so, what is that utility and where can I get it? Also, what format is the output in: OpenOffice or MS-PPT? Thanks, -Nilanjan

Re: [Boston.pm] Newbie question

2010-05-06 Thread Palit, Nilanjan
From: john saylor Sent: Thursday, May 06, 2010 9:21 PM Subject: Re: [Boston.pm] Newbie question i'd say just do it. I'll second that. Programming is all about practice and less about syntax (some people argue that every language has a style/philosophy, but that will come automatically as

[Boston.pm] One-Line Perl Puzzler

2009-09-08 Thread Palit, Nilanjan
http://blogs.discovery.com/nerdabout_new_york/2009/08/perl-puzzler.html#comments ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] binary search on a list of sorted strings in memory

2009-07-09 Thread Palit, Nilanjan
-Original Message- From: Ronald J Kimball Sent: Thursday, July 09, 2009 10:18 AM Subject: Re: [Boston.pm] binary search on a list of sorted strings in memory Another option would be a dictionary tree, in which each node is a single letter, so each word is represented by a path through

Re: [Boston.pm] Perl Boolean Expression builder

2009-05-20 Thread Palit, Nilanjan
: Wednesday, May 20, 2009 6:28 PM To: Tom Metro; Palit, Nilanjan Cc: L-boston-pm Subject: RE: [Boston.pm] Perl Boolean Expression builder To minimize the Boolean expression or compute one from a truth table, I think you want http://search.cpan.org/~kulp/Algorithm-QuineMcCluskey-0.01/lib/Algorithm

Re: [Boston.pm] Larry's MIT talk

2009-04-03 Thread Palit, Nilanjan
From: boston-pm-bounces+nilanjan.palit=intel@mail.pm.org [mailto:boston-pm-bounces+nilanjan.palit=intel@mail.pm.org] On Behalf Of Jerrad Pierce Sent: Friday, April 03, 2009 12:35 PM Other than the camel, goats or mules probably come closest to representing Perl's versatility I

Re: [Boston.pm] slice of life

2008-12-04 Thread Palit, Nilanjan
From: Bernardo Rechea Sent: Thursday, December 04, 2008 10:39 AM I sounds like we are big fans of slicing... Now, what kind of slicing would you say Perl's is more like, this: http://en.wikipedia.org/wiki/Slicer ? or more like this: http://en.wikipedia.org/wiki/Microtome ? :-D More like

[Boston.pm] Interpolated scalar as an lvalue?

2008-10-16 Thread Palit, Nilanjan
How (or can) I use an interpolated scalar as an lvalue? Example: I want to assign a value to a bunch of scalar variables $prefix_type: my ($abc_type, $def_type, $xyz_type); ... ... foreach (qw(abc def xyz)) #List of prefixes { $varname= $_._type; #Actual scalar variable name is

Re: [Boston.pm] Interpolated scalar as an lvalue?

2008-10-16 Thread Palit, Nilanjan
Thanks, Ronald. I was hoping there was a way around that still satisfied 'strict refs'. -Nilanjan -Original Message- From: Ronald J Kimball [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 10:40 AM To: Palit, Nilanjan Cc: Boston Perl Mongers Subject: Re: [Boston.pm

Re: [Boston.pm] Interpolated scalar as an lvalue?

2008-10-16 Thread Palit, Nilanjan
-pm Subject: Re: [Boston.pm] Interpolated scalar as an lvalue? On Thu, 2008-10-16 at 10:39 -0400, Ronald J Kimball wrote: On Thu, Oct 16, 2008 at 08:32:41AM -0600, Palit, Nilanjan wrote: Perl complains about the second line in the foreach loop during run time: Can't use string (abc_type

Re: [Boston.pm] Send Setup commands to Brother HL5250 printer?

2007-11-07 Thread Palit, Nilanjan
Bob, It's been a while since I did PostScript programming. PS doesn't have PCL type commands, since PS is really a low-level graphics programming language. So you actually have to *draw* the page using PS, which means setting up your page coordinates and drawing each individual object

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 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-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] Loop index in foreach?

2006-09-22 Thread Palit, Nilanjan
it in a variable when in that loop's context. -Nilanjan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ronald J Kimball Sent: Thursday, September 21, 2006 6:47 PM To: Palit, Nilanjan Cc: boston-pm@mail.pm.org Subject: Re: [Boston.pm] Loop index in foreach

[Boston.pm] Loop index in foreach?

2006-09-18 Thread Palit, Nilanjan
In a foreach loop, is there a way to find out the loop index number? E.g.: foreach (@myarray) { ... push(@newarray[??loopindex??], somevalue); ... } Currently, I have to resort to the following: for (my $i= 0; $i = $#myarray, $i++) { ... push(@newarray[$i], somevalue); ...} ... which is more

Re: [Boston.pm] Loop index in foreach?

2006-09-18 Thread Palit, Nilanjan
_ From: Palit, Nilanjan Sent: Monday, September 18, 2006 10:31 AM To: L-boston-pm Subject: Loop index in foreach? In a foreach loop, is there a way to find out the loop index number? E.g.: foreach (@myarray) { ... push(@newarray[??loopindex

Re: [Boston.pm] Loop index in foreach?

2006-09-18 Thread Palit, Nilanjan
Boger Sent: Monday, September 18, 2006 10:39 AM To: boston-pm@mail.pm.org Subject: Re: [Boston.pm] Loop index in foreach? On Mon, Sep 18, 2006 at 07:30:40AM -0700, Palit, Nilanjan wrote: In a foreach loop, is there a way to find out the loop index number? E.g.: foreach (@myarray) { ... push

Re: [Boston.pm] Audio::Simple??

2005-12-20 Thread Palit, Nilanjan
Can't help you with your Perl question, but I have used this one for a while on WinX (freeware): http://cheqsoft.com/break.html -Nilanjan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Mitchell Sent: Tuesday, December 20, 2005 2:28 PM To:

Re: [Boston.pm] damian topic

2005-10-27 Thread Palit, Nilanjan
Does anyone have a list of the modules that Damian mentioned/used in his talk yesterday? I'd like to dig into them to understand what lies beneath maybe even use them. A quick search on Google did not reveal anything. Thanks, -Nilanjan -Original Message- From: [EMAIL PROTECTED]

Re: [Boston.pm] Perl RE: first occurrence of a pattern?

2005-05-12 Thread Palit, Nilanjan
Yup! Thanks, -Nilanjan -Original Message- From: Kripa Sundar [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 6:22 PM To: Palit, Nilanjan Cc: Boston.PM Mongers Subject: Re: [Boston.pm] Perl RE: first occurrence of a pattern? Dear Nilanjan, If I used a RE like the following

[Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Palit, Nilanjan
I want to redirect print output to both stdout a file at the same time: I can think of writing a sub that executes 2 print statements (one each to stdout the filehandle), but I was hoping someone has a more elegant solution. Thanks, -Nilanjan ___

Re: [Boston.pm] Simultaneous redirect to STDOUT File?

2005-05-09 Thread Palit, Nilanjan
Thanks to all who responded. IO::Tee seems to be the right solution. -Nilanjan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gyepi SAM Sent: Monday, May 09, 2005 11:35 AM To: Palit, Nilanjan Cc: Boston.PM Subject: Re: [Boston.pm] Simultaneous redirect

RE: [Boston.pm] Perl popularity and interview questions

2005-03-07 Thread Palit, Nilanjan
From: Greg London Sent: Monday, March 07, 2005 9:50 AM And if the applicant seems to take joy in simply pointing out the problem as a way of demonstrating how smart they are but consistently needs prodding to answer the meat of the question, I wouldn't let them work for me if you paid me.

RE: [Boston.pm] Perl popularity and interview questions

2005-03-07 Thread Palit, Nilanjan
] On Behalf Of [EMAIL PROTECTED] Sent: Monday, March 07, 2005 11:01 AM To: [EMAIL PROTECTED] Cc: Boston-pm@mail.pm.org Subject: RE: [Boston.pm] Perl popularity and interview questions Palit, Nilanjan said: ~~$ perl -e '$x=1; $y=$x+++1; print x=$x, y=$y\n' Bummer. I just got a ding on your interview

RE: [Boston.pm] Perl popularity and interview questions

2005-03-07 Thread Palit, Nilanjan
From: John Macdonald [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 12:50 PM Precedence has nothing to do with it. The issue is how the tokenizer breaks the input sequence '+++' into operator tokens. Absolutely. The trickier version of the same question is when both sides of the

RE: [Boston.pm] (also) Perl

2005-02-25 Thread Palit, Nilanjan
From: Alex Brelsfoard Sent: Friday, February 25, 2005 4:07 PM Subject: Re: [Boston.pm] (also) Perl I like this idea. I think Perl certification WOULD make the world happier. Then again, I like Greg's idea. Think maybe some of us PerlMongers could get together and actually start up a real

RE: [Boston.pm] Max hash key length

2004-12-30 Thread Palit, Nilanjan
-Original Message- From: Uri Guttman [mailto:[EMAIL PROTECTED] $ so specify your data and its use better. how many are there in each list $ to be hashed? The application that I'm looking into this for, has 1000 chars per string. [Though in a separate offline discussion w/ Greg London,

RE: [Boston.pm] Max hash key length

2004-12-29 Thread Palit, Nilanjan
Folks, Thanks for the good ideas the performance discussion. I'll try out the different suggestions. Now, regarding Tom Metro's original suggestion for using an MD5 Digest: I read that the original MD5 algorithm has known issues with collisions. Any experiences with how well Digest::MD5 does

[Boston.pm] Max hash key length

2004-12-27 Thread Palit, Nilanjan
I wanted to know if there are any limitations to the max key length used for hashes in Perl. Also, what are the performance implications, if any, of using long keys? I have an application that needs key lengths in the range of ~1000, but with relatively limited numbers of keys (few to low tens of

[Boston.pm] (no subject)

2004-09-01 Thread Palit, Nilanjan
I thought this is possible, but maybe I'm wrong. Ok, here's the issue: I want to print the values of a bunch of variables so I thought I'll take a shortcut and do this: foreach (qw(var1 var2 var3 var4)) { print $_ - ${$_}\n; } I had thought that interpolating the variable name (${$_})

RE: [Boston.pm] RE: Interpolating variables

2004-09-01 Thread Palit, Nilanjan
to the boston-pm server), so I had been unsure of the address. Will limit it to a single address next time. -Original Message- From: Ronald J Kimball [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 11:28 AM To: Palit, Nilanjan Cc: [EMAIL PROTECTED] Subject: Re: [Boston.pm] RE

[Boston.pm] Weird regex behavior?

2004-08-02 Thread Palit, Nilanjan
Folks, Here's a weird regex behavior I'm getting that I don't understand. Problem description: Look at the 2 if (s/.../.../) statements below [marked (Case A) (Case B)]. They are basically identical each get the same input. The only difference is that the 2nd regex has a \s* at the start of

RE: [Boston.pm] Weird regex behavior?

2004-08-02 Thread Palit, Nilanjan
Of Mike Williams Sent: Monday, August 02, 2004 9:09 AM To: [EMAIL PROTECTED] Subject: Re: [Boston.pm] Weird regex behavior? -Original Message- From: Ron Newman [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 8:21 AM To: Palit, Nilanjan Cc: [EMAIL PROTECTED] Subject: Re

[Boston.pm] A non-perl html question - any ideas?

2003-11-10 Thread Palit, Nilanjan
Apologies for posting this in this forum - but I really need to resolve this and don't know where to post this question - any suggestions or pointers to any other question/message boards would be greatly appreciated. I'm sending an html formatted email (Perl generated) which is being read in

[Boston.pm] HTML email messages

2003-02-02 Thread Palit, Nilanjan
This question is not directly related to Perl, but I'm hoping that someone here can answer it. I have written a tool in Perl, that runs on Unix, to generate daily roll-up reports and mail it out to a distribution list. Most of the recipients use Microsoft Outlook to read the reports. I have