Re: Learning Perl book, Chapter 1 example: open MAIL, |mail email_address doesn't work

2003-06-05 Thread David Cantrell
knows what to do with it, nor knows how to warn you of the fact. -- David Cantrell Beekeeping is like being a lion tamer, but with smaller lions, and more of them. -- arp

Re: CPAN/compilation issues

2003-06-05 Thread David Cantrell
/bin/perl Undefined symbols: _Perl_safefree _Perl_safemalloc _Perl_sv_2pv _Perl_sv_catpvn _perl_get_sv Did you, perchance, compile and install your own perl from sources without diddling the Makefile and what have you? -- David Cantrell Beekeeping is like being a lion tamer

Re: Regexp for split

2003-06-10 Thread David Cantrell
1117 CCCAAAGACA C T CACAGT 5 1 1 A C TGTTCTTTCA 4 1394 0 AGCAATAAAC G T 3 -- David Cantrell

Re: perl via Fink

2003-06-03 Thread David Cantrell
package system-perl580-5.8.0-1 which is odd, when you consider: 510$ which perl /usr/local/bin/perl 511$ perl -v This is perl, v5.8.0 built for darwin -- David Cantrell Beekeeping is like being a lion tamer, but with smaller lions, and more of them. -- arp

Re: [OT] Japanese

2003-06-17 Thread David Cantrell
until Activestate port Komodo. -- David Cantrell

Re: DropScript confusion about cwd

2003-07-11 Thread David Cantrell
even know what the correct terminology is -- David Cantrell

Re: Panther, Perl 5.8.*, threads, etc.

2003-07-16 Thread David Cantrell
up Perl interpreters, tho... If you fork() you avoid both that overhead and the overhead of compiling your code to bytecode. And while you can't nice a process that you are forking off, you could do something like system(renice $niceness -p $$) in the new process. -- David Cantrell

Re: Panther, Perl 5.8.*, threads, etc.

2003-07-16 Thread David Cantrell
On Wednesday, July 16, 2003 11:58 am -0700 Rich Morin [EMAIL PROTECTED] wrote: At 7:26 AM +0100 7/16/03, David Cantrell wrote: If you fork() you avoid both that overhead and the overhead of compiling your code to bytecode. And while you can't nice a process that you are forking off, you could do

Re: Panther, Perl 5.8.*, threads, etc.

2003-07-16 Thread David Cantrell
On Wednesday, July 16, 2003 1:15 pm -0700 Rich Morin [EMAIL PROTECTED] wrote: At 8:33 PM +0100 7/16/03, David Cantrell wrote: As far as the program is concerned, it's a complete copy. But yes, most modern virtual memory implementations will, I believe, do copy on write. I haven't actually tested

Re: Executing an Xwindows app from perl on OSX

2003-12-05 Thread David Cantrell
to somehow tell consed to run in an Xwindows environment if the Xwindows server is running. Set the DISPLAY environment variable to something appropriate. -- David Cantrell | Degenerate | http://www.cantrell.org.uk/david Never attribute to malice that which can be explained by stupidity

Re: Executing an Xwindows app from perl on OSX

2003-12-06 Thread David Cantrell
Ari Kahn wrote: David Cantrell [EMAIL PROTECTED] wrote: Set the DISPLAY environment variable to something appropriate. How do I figure out what is an appropriate setting for DISPLAY? DISPLAY=:0 is almost always the right incantation. You do, of course, need to be running a local X server

PDL

2003-12-22 Thread David Cantrell
Inquisitor David Cantrell | http://www.cantrell.org.uk/david Soylent green is purple! Soylent green is purple!

Re: tricky parsing question

2004-01-23 Thread David Cantrell
index(), rindex() and substr(). -- David Cantrell | Degenerate | http://www.cantrell.org.uk/david If you have received this email in error, please add some nutmeg and egg whites, whisk, and place in a warm oven for 40 minutes.

Using challenge-response systems for mailing lists

2004-01-23 Thread David Cantrell
) user attempting to verify that I am a person, and a spammer trying to verify that my address really exists and is read. The policy on the mailing lists I run is that anyone moronic enough to send such challenges in response to mailing list postings gets unsubscribed. -- David Cantrell | Degenerate

Re: Using challenge-response systems for mailing lists

2004-01-23 Thread David Cantrell
On Fri, Jan 23, 2004 at 01:44:58PM +, David Cantrell wrote: I just received this: I am an automated email sentry designed to protect against unwanted email. You recently sent an email titled 'Re: tricky parsing question' to 'macosx'. ... Amusingly, this message also triggered the broken

Re: getting in between dates in a hash

2004-02-16 Thread David Cantrell
say which one to use cos that's a religious issue :-) -- Lord Protector David Cantrell | http://www.cantrell.org.uk/david Repent through spending

Re: Web servers with cable DSL

2004-03-16 Thread David Cantrell
. The *only* reason that I am now in the process of kicking all the other users off the box and moving my own stuff to a hosted machine is because it's cheaper to buy bandwidth for my content that way than to get fatter DSL. -- Lord Protector David Cantrell | http://www.cantrell.org.uk/david

Re: Sort by Mod Date

2004-05-14 Thread David Cantrell
On Thu, May 13, 2004 at 07:22:38PM -0500, Ken Youens-Clark wrote: The File::Find module can be a little cryptic, so you might be interested to look at Randal Schwartz's File::Finder module ... Or Richard Clamp's File::Find::Rule. -- David Cantrell | Degenerate | http://www.cantrell.org.uk

Re: Installing modules on osX 10.3.3

2004-06-13 Thread David Cantrell
would have got some rather more useful error messages! O'Reilly are good at putting errata on their web site, so you really should report this to them. I just checked and it doesn't appear that this one has been reported yet. -- David Cantrell | Official London Perl Mongers Bad Influence

Re: Installing modules on osX 10.3.3

2004-06-13 Thread David Cantrell
Warning: Cannot install libwww-perl, don't know what it is. libwww-perl is, IMO, badly named and badly packaged. It's the same as Bundle::LWP. -- David Cantrell | Reality Engineer, Ministry of Information All praise the Sun God For He is a Fun God Ra Ra Ra!

Re: Getting started with Perl OSX

2004-11-01 Thread David Cantrell
blades. [aside: Apple guys - just copy the interface from VB 3] -- David Cantrell | http://www.cantrell.org.uk/david May your blessings always outweigh your blotches! -- Dianne van Dulken, in alt.2eggs...

Re: Getting started with Perl OSX

2004-11-02 Thread David Cantrell
On Tue, Nov 02, 2004 at 04:25:12AM -0500, Paul G. Hackett wrote: Quoting David Cantrell [EMAIL PROTECTED]: The one about (C|C++|Objectionable C) and (Cocoa|Carbon|Coelocanth) might help. It's on my bookshelf, but I've not used it much you couldn't be a *little* more specific about that book

Re: Installing new(er) perl on Jaguar

2004-11-03 Thread David Cantrell
first in your path. -- David Cantrell | http://www.cantrell.org.uk/david Pressure was growing last night for the global war on terror to be broadened to take in a wide range of other 'rogue emotions' including horror, shock and a general feeling of bewilderment about the state of the world

Re: Installing new(er) perl on Jaguar

2004-11-03 Thread David Cantrell
On Wed, Nov 03, 2004 at 11:50:07AM -0500, Sherm Pendley wrote: On Nov 3, 2004, at 6:42 AM, David Cantrell wrote: I do *not* advise removing the perl that comes with OS X. Neither did I. There's a big difference between removing perl and changing which perl is the default. I suggested

Re: Trying to reinstall Apache mod_perl

2004-11-11 Thread David Cantrell
or not, but I'd use Pacifist http://www.charlessoft.com to extract it from the install media. I'd ask someone on here with exactly the right version of OS X to email me a copy. -- David Cantrell | Benevolent Dictator Of The World Norton Wipe Info uses hexadecimal values to wipe files

Re: Problems with Spidering Hack #56

2005-01-15 Thread David Cantrell
of 'single' and double quotes in the original post - not worth buying. -- David Cantrell | Official London Perl Mongers Bad Influence Taking over the world, one zombie cyborg kitten at a time

Re: Problem with Encoding

2005-02-18 Thread David Cantrell
set you probably intend is Windows-1252 No he doesn't, he wants iso-8859-15 -- David Cantrell | Reality Engineer, Ministry of Information WARNING! People in front of screen are stupider than they appear -- Tanuki the Raccoon-dog, in the Monastery

Re: Problem with Encoding

2005-02-18 Thread David Cantrell
John Delacour wrote: At 12:33 pm + 18/2/05, David Cantrell wrote: First of all iso-8859-1 does not contain the Euro sign. The character set you probably intend is Windows-1252 No he doesn't, he wants iso-8859-15 I doubt it very much If he says he wants ISO 8859 1 and he says he wants

Re: James J Stadler/US/DNY is out of the office.

2005-06-08 Thread David Cantrell
[EMAIL PROTECTED] wrote: I will be out of the office starting 06/04/2005 and will not return until 06/11/2005. I wonder if this guy is always stupid enough to send auto-replies to mailing lists, or if we've been singled out for special treatment. -- David Cantrell | http

Re: ActiveState is announcing support for Mac OS X

2005-06-08 Thread David Cantrell
Lola Lee wrote: David Cantrell wrote: John Delacour wrote: Getting CPAN to behave is also a black art. I wonder what you're doing wrong, then. I'm not the only one. There's a couple modules that I haven't been able to get to compile lately, such as WebService::GoogleHack, and I don't know

Re: build problems with metadata...

2005-10-07 Thread David Cantrell
own perl build and leave Apple's own perl well alone. -- David Cantrell | Hero of the Information Age I remember when computers were frustrating because they did exactly what you told them to. That seems kinda quaint now. -- JD Baldwin, in the Monastery

Re: How to find out if an application is running

2005-10-13 Thread David Cantrell
Solaris it really does kill all. That is, it sends your chosen signal to all processes. Not good. So don't get in to the habit of using it. -- David Cantrell | Benevolent Dictator Of The World Eye have a spelling chequer / It came with my pea sea It planely marques four my revue / Miss Steaks eye

Re: Send authenticated mail with MIME::Lite

2005-11-11 Thread David Cantrell
just a couple of weeks ago on one of the many lists I subscribe to. But I can't remember which list, or who by. -- David Cantrell | Nth greatest programmer in the world When one has bathed in Christ there is no need to bathe a second time -- St. Jerome, on why washing is a vile pagan

Re: eval a string with a hash ref?

2005-11-14 Thread David Cantrell
of insanity out of one of my modules that is on the CPAN. Thankfully, I never documented that they could be called as functions, and so I don't feel that I shuold care if their removal breaks anything :-) -- David Cantrell | Nth greatest programmer in the world One person can change the world, but most

Re: Formatting uploaded images

2006-02-16 Thread David Cantrell
about in the guts of that module and extract the code I need. -- David Cantrell | Hero of the Information Age fdisk format reinstall, doo-dah, doo-dah; fdisk format reinstall, it's the Windows way

Re: Waiting until Acrobat closes file

2006-05-27 Thread David Cantrell
like ... system('open', '/Applications/Acrobat.app'); then you'll need to: wait around until Acrobat appears in the process table; wait around until that PID disappears; Check out Mac::Processes on the CPAN. -- David Cantrell | random organic glop and a metric fuckton of electricity

Re: Waiting until Acrobat closes file

2006-05-28 Thread David Cantrell
in parallel with your program, then at the moment system() returns you do *not* know that it has safely grabbed hold of the file. You don't even know that it has when you see Acrobat appear in the process table. -- David Cantrell | http://www.cantrell.org.uk/david Eye have a spelling chequer

Re: Odd 'head' problem

2006-06-15 Thread David Cantrell
rename it. It's just a symlink to /usr/bin/lwp-request. You don't need it. Just use 'lwp-request -m HEAD' instead, if you need to do an HTTP HEAD request in a shell script. Presumably you can create a HEAD alias in your shell and, the shell being case-sensitive, avoid the problem. -- David

Re: Mac Perl bug?

2006-07-19 Thread David Cantrell
be written somewhat better. -- David Cantrell | Enforcer, South London Linguistic Massive Are you feeling bored? depressed? slowed down? Evil Scientists may be manipulating the speed of light in your vicinity. Buy our patented instructional video to find out how, and maybe YOU can stop THEM

Re: Perl Module Installation

2006-08-24 Thread David Cantrell
to understand? Run the CPAN shell as root as all will be well. -- David Cantrell | Benevolent Dictator Of The World On the bright side, if sendmail is tied up routing spam and pointless uknot posts, it's not waving its arse around saying root me! -- Peter Corlett, in uknot

Re: Upgrading Perl 5.8.8

2006-09-26 Thread David Cantrell
admit) that that will break some of Apple's stuff, or that your nice shiny new 5.8.8 might get downgraded by Software Update at some point. b) use macports (aka darwinports) to install 5.8.8 in /opt Do that - or build your own and put it in /usr/local or similar. -- David Cantrell | top google

Re: How to know if a module is installed

2006-09-27 Thread David Cantrell
On Thu, Sep 28, 2006 at 12:00:34AM +0900, Nobumi Iyanaga wrote: This is a newbie question: how can I determine if a specific module is installed on a client machine? if(eval use Whatever::Module) { do this; } else { do that; } -- David Cantrell | Reality Engineer, Ministry

Re: CamelBones on MySpace

2007-01-17 Thread David Cantrell
essential ? Given that the whole point of myspace is to be a ghetto for all the least tasteful websites in the world - it absolutely is essential. Without music (and preferably badly MIDIed music at that) his account will be revoked. -- David Cantrell | A machine for turning tea into grumpiness

Re: Interacting with other applications

2007-03-23 Thread David Cantrell
and then removing it before I get a chance to read it, you'll now take an action without the user knowing about it but on the assumption that he does, *and* you've eaten an arbitrary amount of what I typed, which I'll have to type again. Needless to say, this is a Very Bad Idea. -- David Cantrell | Nth

Re: Getting all file paths

2007-03-26 Thread David Cantrell
this isn't an issue if you're only ever working on OS X, but needlessly restricting your code to particular versions of perl is a bad habit to get in to, because you *will* get bitten by it if you share your code with other people. -- David Cantrell | top google result for internet beard fetish club

Re: CamelBones: Will hack for food!

2007-05-07 Thread David Cantrell
That Worked On A Laptop and not because it was Mac. Too many of us still sneer at anything non-Unix. -- David Cantrell | Enforcer, South London Linguistic Massive I apologize if I offended you personally, I intended to do it professionally. -- Steve Champeon, on the nanog list

Re: Speaking of support for Camel Bones

2007-05-08 Thread David Cantrell
-worthy than helping disabled people. -- David Cantrell | Hero of the Information Age More people are driven insane through religious hysteria than by drinking alcohol.-- W C Fields

BUG: strange behaviour with 'use open IN = :byte'

2007-09-17 Thread David Cantrell
in perl! In both cases: If I swap the lines, everything runs smoothly. Same here. I've CCed p5p on this mail. -- David Cantrell | A machine for turning tea into grumpiness There's a hole in my bucket, dear Liza, dear Liza. WHAT MAKES YOU SAY THERE IS A HOLE IN YOUR BUCKET?

Re: Problem with installing DBD::MySQL (Mac OS X 10.4.10)

2007-09-20 Thread David Cantrell
a symlink to it in the $PATH. -- David Cantrell | top google result for topless karaoke murders You know you're getting old when you fancy the teenager's parent and ignore the teenager -- Paul M in uknot

Re: Leopard Perl version...

2007-10-13 Thread David Cantrell
On Sat, Oct 13, 2007 at 08:51:52PM +0200, [EMAIL PROTECTED] wrote: (5.10 is rumored to be frozen too, but don't hold your breath. :^) ) It isn't. Raphael was still applying patches earlier today. -- David Cantrell | Reality Engineer, Ministry of Information

Detecting OS X version from perl

2007-10-14 Thread David Cantrell
Is there any simple way that people can think of to detect which major version of OS X my perl code is running on? ie whether it's 10.0, 10.1 etc, I don't care about the difference between 10.3.3 and 10.3.4. -- David Cantrell | Hero of the Information Age I caught myself pulling grey hairs

Re: Detecting OS X version from perl

2007-10-14 Thread David Cantrell
On Sun, Oct 14, 2007 at 10:45:30AM -0700, Edward Moy wrote: % perl -e 'chomp($vers = `sw_vers -productVersion`); print $vers\n' That will get you either 10.x or 10.x.y. You just need to strip off the .y if it is there. Perfect, thanks! -- David Cantrell | Nth greatest programmer

Re: Leopard Perl version...

2007-10-16 Thread David Cantrell
channel). This makes perfect sense. Is it possible to add this seperate channel to Software Update? -- header FROM_DAVID_CANTRELLFrom =~ /david.cantrell/i describe FROM_DAVID_CANTRELLMessage is from David Cantrell scoreFROM_DAVID_CANTRELL15.72 # This figure from experimentation

Re: Is there a True Boolean type in Perl?

2007-10-16 Thread David Cantrell
and the empty string for false. In numeric context that's the same as returning 1 and 0 because: '' == 0 -- David Cantrell | Hero of the Information Age When a man is tired of London, he is tired of life -- Samuel Johnson

Re: Leopard Perl version... @ 1192462023

2007-10-17 Thread David Cantrell
Doug McNutt wrote: At 15:29 +0100 10/16/07, David Cantrell wrote: The one I'm most looking forward to is perl being relocatable. Current versions of perl have the values for @INC hard-coded into the binary at compile-time. You can add to @INC in perl 5 by defining an environment variable

Re: PerlObjCBridge

2007-10-17 Thread David Cantrell
macshaggy wrote: I can't wait for Leopard, but I'm going to have to since I can't afford to spend the money on it next week. I can wait for it, because I always like to let other people test an OS before I use it :-) -- David Cantrell | http://www.cantrell.org.uk/david You can't judge

OT: non-perl dependencies (was: Thanks Apple! You snubbed perl yet again!)

2007-10-19 Thread David Cantrell
, that will hopefully provide a template others can use to bundle other executables and libraries in a CPAN-friendly manner. Why choose pkg-config? Cos there's a module that depends on it. -- David Cantrell | Enforcer, South London Linguistic Massive Computer Science is about lofty design goals and careful

Locale weirdness

2007-10-23 Thread David Cantrell
exists, and /sw/share/locale/nl/glibc.mo is present. However, LANG=nl ls /xx is still in English. Don't know why. This seems rather odd. Anyone know what's going on? -- David Cantrell | Cake Smuggler Extraordinaire Repent through spending

Re: Not exactly a Perl question

2007-10-26 Thread David Cantrell
on Solaris (on a Sparc box) and NetBSD on Alpha. I use Parallels because VMware for Mac didn't exist at the time. I wish that Parallels could run OS X as a 'guest' OS. That Apple won't allow virtualisation is bloody annoying. -- David Cantrell | Minister for Arbitrary Justice You are so

Re: bluetooth devices

2007-11-20 Thread David Cantrell
the worst, coming in after doing it by hand with paper and pencil and stabbing yourself repeatedly in the crotch. -- David Cantrell | Minister for Arbitrary Justice

Re: Leopard Upgrade Killed my Modules

2008-01-10 Thread David Cantrell
On Wed, Jan 09, 2008 at 10:51:03PM -0800, John Baldwin wrote: perl 5.9 looks like it has some nice features anyway. 5.10 is out now. Unfortunately it was just a bit too late to make it into Leopard. -- David Cantrell | Nth greatest programmer in the world Eye have a spelling chequer

Re: Proposed Mac::Pasteboard

2008-01-29 Thread David Cantrell
module that claims to do the job on OS X. But the tests don't run properly on OS X. So *maybe* Mac::Clipboard isn't necessary. -- David Cantrell | London Perl Mongers Deputy Chief Heretic There are many different types of sausages. The best are from the north of England. The wurst

Re: MacPort: how to port perl?

2008-09-09 Thread David Cantrell
On Sun, Sep 07, 2008 at 06:23:13PM -0400, Vic Norton wrote: As far as I can tell Perl on a Mac pays absolutely no attention the environmental variable PERL5LIB. I'm afraid that's not the case: cowshed-door:~ david$ /usr/bin/perl -e '$,=\n;print @INC' /sw/lib/perl5 /sw/lib/perl5/darwin

Re: MacPort: how to port perl?

2008-09-09 Thread David Cantrell
On Tue, Sep 09, 2008 at 02:07:58PM +0100, David Cantrell wrote: cowshed-door:~ david$ /usr/bin/perl -e '$,=\n;print @INC' /sw/lib/perl5 /sw/lib/perl5/darwin /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level

Re: Adding to @INC

2009-01-07 Thread David Cantrell
first, just like you normally put your own private binaries directory at the front of your $PATH. -- David Cantrell | Cake Smuggler Extraordinaire You know you're getting old when you fancy the teenager's parent and ignore the teenager -- Paul M in uknot

Re: What does ord mean?

2009-03-05 Thread David Cantrell
On Thu, Mar 05, 2009 at 01:17:38PM -0600, Bill Stephenson wrote: Okay, but now I'm curious. What does ord mean? (or do) perldoc -f ord -- David Cantrell | Nth greatest programmer in the world What profiteth a man, if he win a flame war, yet lose his cool?

Re: Dumb path question

2009-03-11 Thread David Cantrell
-- David Cantrell | Nth greatest programmer in the world Lesbian bigots try to put finger in linguistic dyke: http://news.bbc.co.uk/1/hi/world/europe/7376919.stm

Re: paths in Perl

2009-03-12 Thread David Cantrell
platforms, use the File::Homedir module. -- David Cantrell | A machine for turning tea into grumpiness fdisk format reinstall, doo-dah, doo-dah; fdisk format reinstall, it's the Windows way

Re: perl modules installation on OSX

2010-02-17 Thread David Cantrell
Switch At least according to Module::CoreList. -- David Cantrell | even more awesome than a panda-fur coat Vegetarian: n: a person who, due to malnutrition caused by poor lifestyle choices, is eight times more likely to catch TB than a normal person

Re: Perl 5.10.0 Memory Usage

2010-08-04 Thread David Cantrell
, then you can expect data structures to use more memory, up to twice as much in the worst case. -- David Cantrell | Nth greatest programmer in the world Hail Caesar! Those about to vi ^[ you!

Re: Perl 5.10.0 Memory Usage

2010-08-04 Thread David Cantrell
to troubleshoot this sort of problem, other than digging through your code? There are some modules for helping to find memory leaks. I forget their names, but search for leak on search.cpan.org. -- David Cantrell | top google result for topless karaoke murders Arbeit macht Alkoholiker

Re: New Perl-Installation on new OS X

2011-06-10 Thread David Cantrell
that may be made to your startup files elsewhere at a later date. -- David Cantrell | Reality Engineer, Ministry of Information Blessed are the pessimists, for they test their backups

Re: New Perl-Installation on new OS X

2011-06-10 Thread David Cantrell
no effect on shell sessions. Obviously I'm missing something. If I do set it, it seems to have the same effect ... Are you using Terminal.app? That's a GUI application, so it takes effect, and is then inherited by the shell. Try sshing into your Mac from elsewhere. -- David Cantrell