Re: Testing output to STDOUT and STDERR

2004-02-09 Thread Sam Vilain
On Tue, 10 Feb 2004 00:57, Orton, Yves wrote; > Its worth noting that this approach wont actually grab everything > on the tied filehandles.  There are enough ways to bypass the tie > that you have to do a lot more than that to get the majority, and > even then there is stuff that will sti

Re: Testing output to STDOUT and STDERR

2004-02-09 Thread Adrian Howard
On Monday, February 9, 2004, at 08:27 pm, Andy Lester wrote: Because: a) I wasn't happy with the API b) I'm a lazy SOB and couldn't find the time to sort it out I'll be glad to help with the second part. Mail me the parts and I'll bundle it up all nice for ya. If you want to play

Re: Testing output to STDOUT and STDERR

2004-02-09 Thread Andy Lester
> Because: > a) I wasn't happy with the API > b) I'm a lazy SOB and couldn't find the time to sort it out I'll be glad to help with the second part. Mail me the parts and I'll bundle it up all nice for ya. -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Testing output to STDOUT and STDERR

2004-02-09 Thread Adrian Howard
On Monday, February 9, 2004, at 06:27 pm, Kineticode Billing wrote: On Feb 9, 2004, at 10:20 AM, Adrian Howard wrote: [snip] Cool. Why isn't this on CPAN? Because: a) I wasn't happy with the API b) I'm a lazy SOB and couldn't find the time to sort it out The new year's resolution

Re: Testing output to STDOUT and STDERR

2004-02-09 Thread Kineticode Billing
On Feb 9, 2004, at 10:20 AM, Adrian Howard wrote: I did something similar with Test::Output http://www.quietstars.com/perl/Test-Output-0.01.tar.gz which allows you to do things like: output_is { hello() } "hello world\n", STDOUT, "hello world"; output_isnt { hello() } "goodbye",

Re: Testing output to STDOUT and STDERR

2004-02-09 Thread Adrian Howard
On Monday, February 9, 2004, at 02:14 am, David Wheeler wrote: [snip] Perhaps: stdout_is(print STDOUT "hello", "hello", 'print "hello" to STDOUT'); [snip] I did something similar with Test::Output http://www.quietstars.com/perl/Test-Output-0.01.tar.gz which allows you to do things like:

Re: Testing output to STDOUT and STDERR

2004-02-09 Thread Adrian Howard
On Monday, February 9, 2004, at 02:08 am, Adriano R. Ferreira wrote: [snip] One of the things I am not confident at is the interplay with modules like Test::More. Where they send their output: STDERR? [snip] Test::Builder dups the filehandles it uses, so as long as it gets loaded first you shoul

Re: New module Mail::SendEasy

2004-02-09 Thread Dave Rolsky
On Mon, 9 Feb 2004, Simon Cozens wrote: > [EMAIL PROTECTED] (Smylers) writes: > > Personally I found Simon's commentary on some mail-sending modules to be > > very useful (and I didn't object to his choice of words: when he found > > something he didn't like he merely said so -- he didn't insult t

Re: "Smarty templates"

2004-02-09 Thread Ed Summers
On Mon, Feb 09, 2004 at 02:58:02AM -0600, david nicol wrote: > Has anyone written a Perl parser for PHP's Smarty template language? I haven't, but it sure would be cool if TT3 [1] supported them. //Ed [1] http://tt3.template-toolkit.org/

Re: New module Mail::SendEasy

2004-02-09 Thread Mark Stosberg
On Sun, Feb 08, 2004 at 07:18:38PM +, Smylers wrote: > > The Cpan rating thing may help somewhat in this regard -- I will log on > and give MIME::Lite a good review sometime, honestly! > > What would really be useful is a comparison of the various mail-sending > modules available, listing whi

Re: proposed Text::Charnames

2004-02-09 Thread Rodent of Unusual Size
david wrote: > > call the module "ASCII::TTYish" and have it import all the old names > as constant functions. er, no existing ASCII:: namespace. how about Convert::TTYnames ? -- #kenP-)} Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/ Author, developer, opinionist http://Ap

RE: Testing output to STDOUT and STDERR

2004-02-09 Thread Orton, Yves
Title: RE: Testing output to STDOUT and STDERR > Though, I must say that I prefer his API.  The above was really just a > quick hack based on what I'd extracted out of the ePerl code base. > > I'd call it something like IO::Capture if I were to CPAN it. > IO::Seize isn't quite right, but "sei

RE: New module Mail::SendEasy

2004-02-09 Thread Orton, Yves
Title: RE: New module Mail::SendEasy > Even if it's done with benchmarks. Just curious, but how well does MIME::Lite fare? Yves

Re: New module Mail::SendEasy

2004-02-09 Thread Simon Cozens
[EMAIL PROTECTED] (Smylers) writes: > Personally I found Simon's commentary on some mail-sending modules to be > very useful (and I didn't object to his choice of words: when he found > something he didn't like he merely said so -- he didn't insult the > code's author or make allegations about memb

Re: Class::HPLOO - Need advice in attributes and object persistence for OODB.

2004-02-09 Thread Sam Vilain
Pixie and Tangram implement Prevalyer-style persistence without the deficiency you speak of. I strongly recommend that you take a good, long, hard look at Pixie. Figure out if you really need to have the logic that drives your object's getters, setters, etc bound to your persistence mechanism. Ot

Re: Testing output to STDOUT and STDERR

2004-02-09 Thread Sam Vilain
On Mon, 09 Feb 2004 14:00, Andy Lester wrote; > > While writing tests for some of my code, I was faced with the issue > > of capturing what the code sends to STDOUT and STDERR. As I have not > > found a module to make it easy, I wrote a trivial code to do it. It > > is used like this: >

Re: New module Mail::SendEasy

2004-02-09 Thread Smylers
Simon Cozens writes: > [EMAIL PROTECTED] (Yves Orton) writes: > > > Well suggest a name. It seems like folks concur that the name is not > > so great so ill alias it to something else. > > Mail::Send::MIME? That's nice, and reasonably as to what the module does descriptive. I still feel that wh

"Smarty templates"

2004-02-09 Thread david nicol
Has anyone written a Perl parser for PHP's Smarty template language? -- david nicol Hands all over Western culture Ruffling feathers and turning eagles into vultures

Class::HPLOO - Need advice in attributes and object persistence for OODB.

2004-02-09 Thread Graciliano M. P.
I have just released Class::HPLOO 0.11, with support for attributes definitions. I have inserted the attribute support to build an automatically object persistence system for OODB through Class::HPLOO. First, some example of the new syntax for attributes: use Class::HPLOO ; class User { attr