Re: Verbose output idiom

2003-07-24 Thread Matthew Lawrence
Shevek wrote: On Thu, 24 Jul 2003, Clayton, Nik [IT] wrote: my @warnbuffer = (); $SIG{__WARN__} = sub { $opts{verbose} ? warn $_[0] : push @warnbuffer, $_[0]; }; # Something's gone wrong. Turn on verbose mode (so that, for example, # any warn() calls in END blocks that might still e

Re: fork()ing in perl

2003-07-21 Thread Matthew Lawrence
Niklas Nordebo wrote: On Fri, Jul 18, 2003 at 02:45:29PM +0100, Iain Tatch wrote: CW> 1. what's happening Perl is doing nothing more than calling your operating system's underlying fork() call -- see `man 2 fork'. Do that, and on Linux you'll see this: Under Linux, fork is imple

Re: XML::DOM trouble

2003-07-15 Thread Matthew Lawrence
Robin Berjon wrote: Matt Lawrence wrote: XML::DOM is acting very strangely with regard to UTF-8. I wouldn't be surprised if XML::DOM and Perl 5.8 interacted badly. You would probably be better off using XML::LibXML instead. It's a bit too late for that now, unfortunately. I'm pretty much stuck