-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
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
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
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
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,
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
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
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
> 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
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
-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
: 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
Question for the EE/CS Perl users: is there a Perl module out there that can
take in a truth table & create a minimized Boolean expression (BE)? I saw some
(non-Perl) tools for doing the reverse. A quick CPAN search did not reveal
anything close to what I'm looking for.
Thanks,
-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
> 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
Cool!
Is this slice capability a feature that is available only in recent versions of
Perl? If so, starting which version?
-Nilanjan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Uri Guttman
Sent: Tuesday, December 02, 2008 4:18 AM
To:
ston-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
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
How (or can) I use an interpolated scalar as an lvalue?
Example: I want to assign a value to a bunch of scalar variables $_type:
my ($abc_type, $def_type, $xyz_type);
...
...
foreach (qw(abc def xyz)) #List of prefixes
{
$varname= $_."_type"; #Actual scalar variable name is $prefix_type
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
e readability & 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 <[EMA
l line 238.
How do I get this sub call to work with the sub name in a variable?
Thanks,
-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 def
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
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 needed. So I'd like to check whether a
specific format
an inner loop, they
can store 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
Subje
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Greg London
Sent: Thursday, September 21, 2006 12:53 PM
To: Palit, Nilanjan; boston-pm@mail.pm.org
Subject: Re: [Boston.pm] Loop index in foreach?
A few years ago, I wrote a module called Loop.pm
which I believe does what you want.
http://c
] On
Behalf Of Dan 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.
> _
> 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 (@myarr
In a foreach loop, is there a way to find out the loop index number?
E.g.:
foreach (@myarray)
{
...
push(@newarray[], );
...
}
Currently, I have to resort to the following:
for (my $i= 0; $i <= $#myarray, $i++)
{ ... push(@newarray[$i], ); ...}
... which is more wordy -- I was wondering if
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:
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]
This seems to work:
Code-
#!/usr/local/bin/perl
my $str= "a bc \"d e f\" h \"i j\"";
print "str==$str==\n";
my $m= "_##_"; #Marker
$str =~ s,\"(\S),\"$m$1,g;
print "str==$str==\n";
@toks= map { (/^$m/)? do{ s,$m,,; $_ } : split(/\s+/, $_) } (split(/\"/,
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 follow
A Perl RE question:
I want to extract the path up to the first occurrence within the path of
any one of the alternatives specified:
#Possible subdir names
$fruits= "apple|orange|peach";
#Possible path names maybe:
$dir= ".../...//";
#Or
$dir= ".../...//blah/";
#where is any one among $fruits.
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
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
___
> 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
-Original Message-
> From: Greg London [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 07, 2005 11:17 AM
>
> As for the triple-plus operator ;)
> I'd think perl would take x, do a "++" on it,
> get 2, and then do the "+1" on it to get three.
> But oh well. just won't use that in my
er') or is not.
-Nilanjan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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,
> 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
> 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
>
> From: Alex Brelsfoard
> Sent: Friday, February 25, 2005 4:11 PM
>
> $message =~ s/\[link .*?\]//gs;
Try putting parens around the argument:
$message =~ s/\[link (.*?)\]//gs;
-Nilanjan
___
Boston-pm mailing list
Boston-pm@mail.pm.org
-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
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
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
er
was due 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: [Bos
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
The website (http://creativecommons.org/technology/web) lists a few
examples of how the tags are embedded. You can click on any of the
sample links listed and then do a View -> Page Source (Ctrl-U in
Netscape) to see the actual HTML code.
Using a text editor works, but if you need this done on
I checked the locale:
LC_COLLATE = C
Thanks,
-Nilanjan
-Original Message-
From: Steven W. Orr [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:32 PM
To: Palit, Nilanjan
Cc: boston perl mongers; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Boston.pm] Weird regex
half 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
>
This is perl, version 5.004_04 built for i386_linux22
Thanks,
-Nilanjan
-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] Weird regex behavior?
On Aug 2, 2004
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
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
]
Sent: Monday, February 03, 2003 9:03 AM
To: Palit, Nilanjan; [EMAIL PROTECTED]
Subject: RE: [Boston.pm] HTML email messages
Hi Nilanjan,
The code below works for me; I've built this into a build script I
wrote a while back to control some software builds we do here; The
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
55 matches
Mail list logo