Jonathan, thanks for the great imput.
I'm still puzzling over the implementation, but as long as the
discussion is happening, how's about this ...
An option --foo is specified. This implies that main::foo() will be
called when the option is found on he command line. My proposal is
that foo() i
# from Geoffrey Leach
# on Monday 29 June 2009 12:34:
>The key difference between Auto and Euclid is that Simon wanted to
>subject the POD writer to minimal inconvienence. I should have
>mentioned that option processing results in a call to main::foo, which
>would permit the user to do whatever ch
Good point. However I need to handle
=head2 foo - (no option arg)
versus
=head2 foo (number) - (option arg)
or, perhaps
=head2 foo 3 - (3 args, passed to main::foo(1, 2, 3)
I neglected to mention that the option foo implies a call to main::foo
when the opt
On 06/29/2009 10:48:26 AM, Jerome Quelin wrote:
> On 09/06/29 10:39 -0700, Geoffrey Leach wrote:
> > So that needs to be specified, and while 'foo - ' is probably
> > acceptable to the POD writer, 'foo int - ...' might be less so,
> taking
> > into account that all of that appears in your POD
Quoth ge...@hughes.net (Geoffrey Leach):
> I'd appreciate some advice here.
>
> Getopt::Auto was conceived by Simon Cozens. I've recently adopted it.
>
> The idea with Getopt::Auto is that it scans your POD looking for =heads
> or =item that have the format: 'foo - what this does is bar', the
>
On 09/06/29 10:39 -0700, Geoffrey Leach wrote:
> So that needs to be specified, and while 'foo - ' is probably
> acceptable to the POD writer, 'foo int - ...' might be less so, taking
> into account that all of that appears in your POD's paragraph headings.
>
> Or am I wrong? Perhaps there's
Generally I think the old wisdom is to just assume all input is some
sort of string, and to perform any validation you need manually or
using other utilities like Scalar::Util's looks_like_number method
(which is core anyway).
However, it might be convenient to have a way to verify that input is
a
I'd appreciate some advice here.
Getopt::Auto was conceived by Simon Cozens. I've recently adopted it.
The idea with Getopt::Auto is that it scans your POD looking for =heads
or =item that have the format: 'foo - what this does is bar', the
single word followed by a dash being the critical part