[Boston.pm] Text::ParseWords -- had to be there

2018-10-04 Thread Mike Small
Hi, I noticed today that Text::ParseWords doesn't check for bad input, e.g. mismatched quotes or a single unescaped quote. The second time I read the documentation I saw this statement: "...and to Jeff Friedl for telling me not to worry about error-checking (sort of-- you had to be there)."

Re: [Boston.pm] Image problem?

2017-11-01 Thread Mike Small
ssuming it's still kicking around in 15 or 20 years. -- Mike Small sma...@sdf.org ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] [Job] Ruby / Perl job, Perm, Cambridge: Senior Software Developer at Smartleaf

2017-10-11 Thread Mike Small
if I were really looking I wouldn't mind seeing those either. You have the [Job] tag people can filter on. If listings became frequent enough you could add some kind of adjective or quantifier for anyone who wanted only to see 100% Perl jobs but not other percentages. Probably overkill for the t

Re: [Boston.pm] script works ok on command line, hangs when run from shell script

2017-04-27 Thread Mike Small
Mike Small <sma...@sdf.org> writes: > Mike Small <sma...@sdf.org> writes: > >> "Greg London" <em...@greglondon.com> writes: >> >>> This may very well be a unix thing, not a perl thing, >> ... >>> The -nobuffer is trying to g

Re: [Boston.pm] script works ok on command line, hangs when run from shell script

2017-04-27 Thread Mike Small
Mike Small <sma...@sdf.org> writes: > "Greg London" <em...@greglondon.com> writes: > >> This may very well be a unix thing, not a perl thing, > ... >> The -nobuffer is trying to get it to flush its output >> to STDOUT, rather than buffer it a

Re: [Boston.pm] script works ok on command line, hangs when run from shell script

2017-04-27 Thread Mike Small
aybe there's a way to get the file descripter from a Perl handle and use fcntl with F_SETFL and O_NONBLOCK to make C do what you want. I've never tried this myself. -- Mike Small sma...@sdf.org ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mai

Re: [Boston.pm] Fwd: script works ok on command line, hangs when run from shell script

2017-04-27 Thread Mike Small
on after a write but output still won't come out the other end of the c library's buffer until Perl gives it a block's worth? -- Mike Small sma...@sdf.org ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] use Exporter vs. require Exporter

2017-03-23 Thread Mike Small
a code smell at a minimum ... ​ > and even if endorsed the comment is a code smell. And yet one that 1234 common modules have if I understand your output correctly. Hmmm, maybe I'll mention it one more time and then let it go. -- Mike Small sma...@sdf.org

[Boston.pm] use Exporter vs. require Exporter

2017-03-23 Thread Mike Small
C. I guess Exporter's import is written so this is harmless, so maybe I should let it go? -- Mike Small sma...@sdf.org ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] perl 5.10 memory leak?

2016-12-13 Thread Mike Small
are afraid that >> their DESTROY gets wrong. >> >> (Note that my original version had a bug. I said IO::ALL::DESTROY when it >> needed to be IO::All::DESTROY.) > > > > > Duane Bronson > nerdmach...@gmail.com <mailto:nerdmach...@gmail.com>

Re: [Boston.pm] catenation of undef with string, 2 cases

2016-11-09 Thread Mike Small
cases, eh? -- Mike Small sma...@sdf.org ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] catenation of undef with string, 2 cases

2016-11-09 Thread Mike Small
for relating it to +=. I have trouble remembering the handy special cases but when it's somewhat systematic that helps. -- Mike Small sma...@sdf.org ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

[Boston.pm] catenation of undef with string, 2 cases

2016-11-09 Thread Mike Small
#!/usr/pkg/bin/perl use warnings; my $a; $a .= '70'; my $b; $b = 42 . $b; print "$a, $b\n"; With the script above I get an uninitialized value warning from perl 5.24 for the second concatenation but not the first. Is there a story behind this? Something to do with the first case being

Re: [Boston.pm] Tech Meeting, Tues 10/13 : Perl 6

2015-10-13 Thread Mike Small
I would go but I have a yoga class on Tuesdays now. On Tue, Oct 13, 2015 at 02:51:09PM -0400, Bill Ricker wrote: > TONIGHT -- Any more RSVPs ? Real working Perl 6 code ! > > Perl 6 v1.0 to release for real in 10 weeks ... website has relaunched. > This is a very good thing, a long time in

Re: [Boston.pm] Fwd: Re: Launch of new Perl 6 homepage

2015-10-07 Thread Mike Small
On Wed, Oct 07, 2015 at 12:46:08PM -0400, Uri Guttman wrote: > here are some good links about larry's talk and the (soonish) perl6 release. > > uri Has there been any hint whether there will be a Camel (Butterfly?) book eventually? -- Mike Small sma...@

Re: [Boston.pm] boost::format to sprintf, or how do I get a substitution with a substitution in it?

2015-04-04 Thread Mike Small
sure to put .c_str() after, but what other implicit type conversions might be lurking that won't be done by sprintf? What about converting to std::ostringstream instead? -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http

[Boston.pm] Clean way to live without constant?

2015-01-16 Thread Mike Small
Channel Protection Levels use constant IMP_CRYPT = I; use constant EXP_CRYPT = E; # Default use constant CLR_CRYPT = C; -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo

Re: [Boston.pm] Clean way to live without constant?

2015-01-16 Thread Mike Small
thinking clearly at all maybe. Thanks. I'm not unhappy with it now. -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] december meeting preview : Hadoop with Perl !

2014-12-02 Thread Mike Small
The 350 bus seems to go up that way too, following Cambridge Street from Arlington. You catch it upstairs at Alewife, at the end closest to the bike path where the bus to NYC used to leave from. Despite the high number, it's a normal fare bus (probably since there's nothing express about it).

Re: [Boston.pm] Help with symbol table munging...

2014-10-29 Thread Mike Small
_map { die; } sub handle_ages { ; } sub handle_dests { ...; somethin_somethin($self-_map()-{YYZ}) } package PKG::fr; use base 'PKG::_base'; our %map; sub _map { \%map } sub handle_ages { ; } -- Mike Small sma...@panix.com

Re: [Boston.pm] Help with symbol table munging...

2014-10-29 Thread Mike Small
{ PKG::_base::$sym(\%map, @_) } } } -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Question re and 21

2014-07-27 Thread Mike Small
Bill Ricker bill.n1...@gmail.com writes: Answer - ​It's even harder to find an actual Bell Unix (Bourne) 'sh' shell today than an authentic Berkeley Csh. Most 'sh' are actually Bour​ne Again SHell (BASH) or later Gnu-ish/Linux derivatives there-of e.g. DASH, which incorporate a lot of

[Boston.pm] Last night's talk, DBD::ADO

2014-02-12 Thread Mike Small
anything in these four month contracts that Uri couldn't whip up in a week or so. But since such companies seem chosen based on recommendations from other people in industry, I'm not sure there'd be any way in for an outsider, however technically trivial what they do might be. -- Mike Small sma

Re: [Boston.pm] Last night's talk, DBD::ADO

2014-02-12 Thread Mike Small
work with someone whose whole job is dealing with these things, and she probably enjoys getting paid, so... -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Tech Meeting - benchmarking Perl5 vs Perl6

2013-12-12 Thread Mike Small
for? -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] ?instances of classA contained in classB, and instances of classB contained in classC?

2013-12-05 Thread Mike Small
have a rigid 2 (or 3?) level structure that you walk down and when you only have one you have an array of one, or else use ref to see whether you have an array or scalar in each hash value and in each array element as you walk down the tree. -- Mike Small sma...@panix.com

Re: [Boston.pm] How to get core dump from crashed process

2013-07-26 Thread Mike Small
Jim Cant cant_...@hotmail.com writes: The script gets passed the PID of the failed process and I can get all the process information using Win32::Process::Info. Question 1: How to generate the dump? Is there a module that will do this? I don't know if there's a module but if there's not an

Re: [Boston.pm] C++ books

2013-04-18 Thread Mike Small
Ben Tilly bti...@gmail.com writes: I've just come up with a better answer to this question. If I was a C/C++ programmer this would have been obvious to me before, and it solves a bunch of annoyances for me at once. #ifndef UTIL_H #define UTIL_H #include string #include stdio.h #include

Re: [Boston.pm] C++ books

2013-04-17 Thread Mike Small
Ben Tilly bti...@gmail.com writes: On Wed, Apr 17, 2013 at 7:29 AM, Greg London em...@greglondon.com wrote: Why use macros when you can write a function? Lisp weenie answer: because the arguments to functions may produce side effects, while with macros you can control that. Of course the

Re: [Boston.pm] C++ books

2013-04-17 Thread Mike Small
Ben Tilly bti...@gmail.com writes: ... If I have a vector of type Foo, then an iterator over it has type std::vector Foo ::iterator. If I have a map from Foo to Bar, then an iterator over it has type std::map Foo, Bar ::iterator. If I have a set of things of type Foo, then an iterator over

Re: [Boston.pm] C++ books

2013-04-15 Thread Mike Small
Ben Tilly bti...@gmail.com writes: ... I'm writing some C++ at the moment that fits into the first group (performance-critical code). For unit testing I've been emitting TAP protocol and testing it with prove, but are there better approaches? I get a test file with a lot of code that looks

Re: [Boston.pm] C++ books

2013-04-12 Thread Mike Small
Bill Ricker bill.n1...@gmail.com writes: the book that i taught from was C++ How To Program. http://www.deitel.com/ They have 5 C/C++ books now, plus Java, VB/#, Web, ... Did you like Deitel and Deitel or was it a compromise between the books you like best and what you thought a mix of

Re: [Boston.pm] C++ books

2013-04-12 Thread Mike Small
David Larochelle da...@larochelle.name writes: I highly recommend Effective C++http://www.amazon.com/gp/product/0321334876/ref=as_li_ss_tl?ie=UTF8camp=1789creative=390957creativeASIN=0321334876linkCode=as2tag=davlarsblo-20 by Scott Meyers. The best description I can give is that it's the

Re: [Boston.pm] C++ books

2013-04-12 Thread Mike Small
Greg London em...@greglondon.com writes: I missed the original question, but if OP (Greg?) can wait At the perl meeting, I mentioned that I'm using a lot of c++ at work and groused that I haven't found a good intro to c++ book. Sounds to me like Accelerated C++ might be close to what

Re: [Boston.pm] post damian interest to list

2013-04-09 Thread Mike Small
Uri Guttman u...@stemsystems.com writes: hi all, if you and/or your company is interested in contributing to a damian visit, please post to the list. a couple of you have posted privately but it is better if all see the level of interest and hopefully they will be encouraged to join in. I

Re: [Boston.pm] symbol table stuff?

2013-03-09 Thread Mike Small
Greg London em...@greglondon.com writes: (1) given a string containing the name of a scalar, how would I tell if that variable already exists in the symbol table? i.e. given MyPackage::Varname, how would I tell if $MyPackage::Varname was already declared? and if it is an array reference?

Re: [Boston.pm] Languages to learn in addition to Perl

2010-07-14 Thread Mike Small
that is)? The time I had a Java API to write against I found Jython to be a good compromise, and it didn't take long to learn. -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Languages to learn in addition to Perl

2010-07-14 Thread Mike Small
with money. -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Exceptions as control flow

2010-03-19 Thread Mike Small
these guys: http://connect.microsoft.com/VisualStudio/feedback/details/336316/missing-destructor-calls-when-optimization-is-enabled#details -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo

Re: [Boston.pm] Exceptions as control flow

2010-03-18 Thread Mike Small
it? Not sure if it's justified or not, but very common from what I hear. Something to do with code verification, provability? Not that that gives any lessons for application code in other domains, necessarily. -- Mike Small sma...@panix.com ___ Boston-pm

Re: [Boston.pm] Exceptions as control flow

2010-03-18 Thread Mike Small
of their languages. Perhaps they have some justifications. -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Exceptions as control flow

2010-03-18 Thread Mike Small
). -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] what Perl can do at non-Perl Conferences

2010-03-17 Thread Mike Small
derive from, right? Ew. -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] what Perl can do at non-Perl Conferences

2010-03-17 Thread Mike Small
On Wed, Mar 17, 2010 at 12:17:30PM -0500, Greg London wrote: Mike Small wrote: Which begs the answer to your question: Yes, people use die as goto. People use longjmp as goto. People use throw as goto. The quoting got a bit mixed up here, this was John's statement, not mine

Re: [Boston.pm] Presenting Perl

2010-03-09 Thread Mike Small
seconds of the downloaded file with mplayer. It played fine. On Tue, Mar 9, 2010 at 12:47 PM, Mike Small sma...@panix.com wrote: I'll try, but when I looked at the html it didn't look like there was anything to grab manually.  Maybe gnash will be able to pull out a file, assuming the site

Re: [Boston.pm] (somewhat OT) question on job levels

2009-06-18 Thread Mike Small
. -- Mike Small sma...@panix.com ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] Perl 6 and Parrot Essentials still worth reading?

2008-07-31 Thread Mike Small
to read the Parrot source code and understand why whatever I tried didn't work and what's not there yet, which I figured would be educational. -- Mike Small [EMAIL PROTECTED] ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman

[Boston.pm] Perl 6 and Parrot Essentials still worth reading?

2008-07-30 Thread Mike Small
or eyes are too sore for computers, or when I'm on a bus or otherwise away from keyboards and monitors. -- Mike Small [EMAIL PROTECTED] ___ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm