Skip Menu |

This queue is for tickets about the PHP-Strings CPAN distribution.

Report information
The Basics
Id: 4548
Status: resolved
Priority: 0/
Queue: PHP-Strings

People
Owner: spoon [...] cpan.org
Requestors: persicom [...] acedsl.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From: "Matthew O. Persico" <persicom [...] acedsl.com>
To: <spoon [...] cpan.org>
Date: Tue, 2 Dec 2003 20:40:24 -0500
Subject: PHP::Strings
I got sucked in. I started scrolling down, reading over and over "THIS FUNCTION WILL NOT BE IMPLEMENTED" and I kept saying to myself, "What kind of sick joke is this?" Then I got to FOR THOSE WHO HAVE READ THIS FAR and I laughed my butt off. Seriously, I think this is a great module. What you SHOULD do is implement each function that you say will not be implemented as a print of the docs to stderr and a die. Like this: sub str_replace { die <<EODEATH =item str_replace PHP::Strings::str_replace IS NOT IMPLEMENTED. See the s/// operator. perlop and perlre have details. EODEATH =cut } If you think I'm nuts, try this little experiment: 1) Create the file foo.pl: =head1 NAME foo =cut sub selfdocfunc { die <<EOPOD =item selfdocfunc the docs for selfdocfunc =cut EOPOD } print 'I better get here'; selfdocfunc; print 'I better not get here' __END__ 2) call it: perl foo.pl 3) pod it perldoc -t -F foo.pl It works! -- Matthew
[persicom@acedsl.com - Tue Dec 2 20:58:01 2003]: Show quoted text
> I got sucked in. I started scrolling down, reading over > and over "THIS FUNCTION WILL NOT BE IMPLEMENTED" and I kept > saying to myself, "What kind of sick joke is this?" Then I > got to FOR THOSE WHO HAVE READ THIS FAR and I laughed my butt off.
Excellent =) My intended response. I figured that with the effects of global warming and such, that December was effectively April. Show quoted text
> Seriously, I think this is a great module. What you SHOULD > do is implement each function that you say will not be > implemented as a print of the docs to stderr and a die.
Superb idea. It is done. 0.25 was uploaded to CPAN just a few minutes ago. It's now a marvel of code generation in that the main .pm file is generated from a Template Toolkit template and a collection of YAML files (one per function). This means I can be much more flexible about how things get done, including implementing your idea in a couple of minutes rather than an hour or two, and I can write new things a heck of a lot faster =) Thanks for the idea! cheers, -- Iain.