Re: [Boston.pm] copying a bigint into an array of "normal" bits

2018-08-28 Thread Morse, Richard E.,MGH via Boston-pm
Have you looked at the “BigInt API”? According to the `bigint` docs, integers have now become objects that you can manipulate using that API. Of course, there isn’t a link, but I think if you look at Math::BigInt, it’s probably correct. A quick look through suggests:

Re: [Boston.pm] copying a bigint into an array of "normal" bits

2018-08-28 Thread Morse, Richard E.,MGH via Boston-pm
Have you looked at the “BigInt API”? According to the `bigint` docs, integers have now become objects that you can manipulate using that API. Of course, there isn’t a link, but I think if you look at Math::BigInt, it’s probably correct. A quick look through suggests:

[Boston.pm] London Perl Workshop post

2018-02-14 Thread Morse, Richard E.,MGH
Hi! Here is the post that I was trying to find last night. Bill’s method of going to the Youtube channel probably works just as well… http://blogs.perl.org/users/lpw/2018/02/videos-for-lpw-2017.html Ricky The information in this e-mail is intended only for the person to whom it is

Re: [Boston.pm] Perl readable Audio format with embedded timing data

2017-10-31 Thread Morse, Richard E.,MGH via Boston-pm
> On Oct 30, 2017, at 5:37 PM, Greg London wrote: > > Is there an audio format that lets you take a song and embed command data > to be executed as the song plays? > > And is there a perl module that could read/write such a file. > > I thinking of embedding some high

Re: [Boston.pm] [Discuss] perl and xml

2017-10-16 Thread Morse, Richard E.,MGH via Boston-pm
> On Oct 9, 2017, at 3:20 PM, Bill Ricker via Boston-pm > wrote: > > So you want to edit XML locally, replacing a tag's text contents with > a specific portion of the text contents of a specifically-named > sibling tag. > > For local edits such as you need, I'd use

Re: [Boston.pm] Porting perl + perl app from linux to OS X?

2017-05-30 Thread Morse, Richard E.,MGH
Almost all of the Perl stuff that I’ve ever used works just fine on OS X (now macOS). I use XS modules, Perlbrew, cpan(m), etc, with no problem. There was a recent issue with macOS Sierra (10.12, I think?), where for some reason the patchperl distribution wasn’t getting updated properly, so

Re: [Boston.pm] social meeting with randal schwartz - thursday 5/4

2017-05-01 Thread Morse, Richard E.,MGH
Hi! Sadly, I cannot make it. We’re in tech for our spring musical, and that’s the last night to fix anything. I hope you all have a blast! Ricky > On Apr 29, 2017, at 7:02 PM, Uri Guttman wrote: > > hi all, > > we have a (not so emergency) social meeting on this

Re: [Boston.pm] Rakudo.org malware?

2017-01-31 Thread Morse, Richard E.,MGH
726-0790 > PHS 617-726-5085 SRH 617-952- > * > > Forwarded this to Pat Michaud who handles the website in question. I'm > guessing WBRS is a Cisco web appliance that's blocking the link? > > On Tue, Jan 31, 2017, at 04:38 PM, Morse, Richard E.,MGH wrote: >> Hi! When I tried

[Boston.pm] Rakudo.org malware?

2017-01-31 Thread Morse, Richard E.,MGH
Hi! When I tried to go to rakudo.org, I got the following warning: > This Page Cannot Be Displayed > > Based on your organization's access policies, this web site ( > http://rakudo.org/2017/01/30/announce-rakudo-star-release-2017-01/ ) has been > blocked because it has been determined by Web

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

2016-11-09 Thread Morse, Richard E.,MGH
> On Nov 9, 2016, at 12:49 PM, Mike Small wrote: > > > #!/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

Re: [Boston.pm] perl sockets and memory use

2016-06-02 Thread Morse, Richard E.,MGH
> On Jun 2, 2016, at 12:04 PM, ja...@nova-sw.com wrote: > [snip] > - I once ran across a comment somewhere in perldoc or code comments that when > perl requests memory from the system it *never* gets released back to the > system -- perl may reuse it itself after getting it garbage collected,

Re: [Boston.pm] Perl 6 sensitive to white space?

2016-02-18 Thread Morse, Richard E.,MGH
I know how you feel… > On Feb 17, 2016, at 7:02 PM, Greg London <em...@greglondon.com> wrote: > > > > This is going to take some getting used to. > > > > On Wed, February 17, 2016 3:33 pm, Morse, Richard E.,MGH wrote: >> Hi! No, list context is more co

Re: [Boston.pm] Perl 6 sensitive to white space?

2016-02-17 Thread Morse, Richard E.,MGH
Hi! No, list context is more common. In particular, it isn’t the comma operator. It’s (I think) the parenthesis. `(123, 456)` creates a list of two elements. Lists no longer automatically flatten (i.e., (1, (2, 3), 4) is only three elements long). If there is a space after a function call,

Re: [Boston.pm] Perl 6 sensitive to white space?

2016-02-17 Thread Morse, Richard E.,MGH
I’m not 100% positive, and I can’t find it immediately in the documentation, but Perl 6 is whitespace sensitive in some situations. In particular, I think that it is interpreting the extra space as making the parameter be a list of two elements. I know that parenthesis are optional in some

[Boston.pm] Search terms help?

2015-09-02 Thread Morse, Richard E.,MGH
Hi! A few years ago, there was a spate of articles online which described how to create a “loader” module — the idea was that instead of having to add a whole bunch of boilerplate to the start of every file, you could have just one module that would import a whole bunch of things. An example

Re: [Boston.pm] Social Meeting, Tuesday, Aug 11

2015-08-04 Thread Morse, Richard E.,MGH
Isn’t the meeting next week? Ricky On Aug 4, 2015, at 8:32 AM, Steve Tolkin stevetol...@comcast.net wrote: I will not be there tonight, but I wanted to say goodbye to Ronald in this email, and thank him for his contributions. Like the president and governor, once you have been the

Re: [Boston.pm] Social Meeting, Tuesday, Aug 11

2015-08-03 Thread Morse, Richard E.,MGH
Hi! I’ll be there! Ricky On Jul 26, 2015, at 12:12 PM, Ronald J Kimball r...@tamias.net wrote: As Uri mentioned on the announcement list, we would like to have a social meeting on Tuesday, Aug 11, so that I can say goodbye to all of you, because I am moving to Minneapolis next month!

Re: [Boston.pm] website problem

2015-06-25 Thread Morse, Richard E.,MGH
SELinux? On Jun 25, 2015, at 1:30 PM, dan moylan j...@moylan.us wrote: my website moylan.us containes several cgi scripts, which have run fine for years and continue to do so. my local versions used to run fine, but no longer do. to check, i cobbled up a test script which exhibits the

Re: [Boston.pm] website problem

2015-06-25 Thread Morse, Richard E.,MGH
On Jun 25, 2015, at 2:00 PM, dan moylan j...@moylan.us wrote: richard morse writes: SELinux? On Jun 25, 2015, at 1:30 PM, dan moylan j...@moylan.us wrote: . . . oh. sounds like a good lead. i don't want to abuse your generosity but after prowling through the

Re: [Boston.pm] cleaning up unicode to ascii?

2015-05-13 Thread Morse, Richard E.,MGH
On May 13, 2015, at 2:29 PM, Uri Guttman u...@stemsystems.com wrote: i have a db which doesn't like unicode (and to get it to accept it may require a complete debug of the DBD stack!). we get a rare error of a unicode char in a string. what is the easiest way to just delete that char and

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

2014-10-29 Thread Morse, Richard E.,MGH
On Oct 29, 2014, at 2:56 PM, Uri Guttman u...@stemsystems.com wrote: hi ricky, i am somewhat confused as to your goal. you want each sub to use a common %map? why not have them access it directly from the base package? Hi! There are actually three different package variables that contain

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

2014-10-29 Thread Morse, Richard E.,MGH
, Richard E.,MGH remo...@mgh.harvard.edu wrote: Hi! I'm running into an odd desire, and I'm hoping someone here can at least tell me where to look, as so far Google and DDG are not telling me what I want. I have a bunch of modules which have the same subroutines in each. Mostly, the code

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

2014-10-29 Thread Morse, Richard E.,MGH
On Oct 29, 2014, at 3:12 PM, Mike Small sma...@panix.com wrote: What about having a method that returns a reference to your map that you override in each of the derived classes? e.g. ... package PKG::_base; sub _map { die; } sub handle_ages { ; } sub handle_dests