and perl integration

and perl integration

am 18.10.2007 15:29:06 von Stefano Sabatini

Hi perlers,

there is a way to integrate nicely Perl code with Pod?

I love the Pod::Usage module very much, and I would like to do
something like this:

my $program_name=foo;
my $foo= 1;

....

=head1 NAME

$program_name - Foo and bazz all the bars of the world.

=head1 SYNOPSIS

$program_name

=head1 OPTIONS

=item B<--foo|-F>

Foo value to use when fooing (default is $foo).

=back

Is this possible (I think it isn't)? Can you suggest some way to
achieve the same effect (maybe with some other module)?

Many thanks in advance.

Regards.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)

Re: Pod and perl code integration

am 18.10.2007 17:39:30 von Stefano Sabatini

On 2007-10-18, Stefano Sabatini wrote:
> Hi perlers,
>
> there is a way to integrate nicely Perl code with Pod?
>
> I love the Pod::Usage module very much, and I would like to do
> something like this:
>
> my $program_name=foo;
> my $foo= 1;
>
> ...
>
>=head1 NAME
>
> $program_name - Foo and bazz all the bars of the world.
>
>=head1 SYNOPSIS
>
> $program_name
>
>=head1 OPTIONS
>
>=item B<--foo|-F>
>
> Foo value to use when fooing (default is $foo).
>
>=back
>
> Is this possible (I think it isn't)? Can you suggest some way to
> achieve the same effect (maybe with some other module)?
>
> Many thanks in advance.
>
> Regards.

Ehm... I missed the Pod in the subject...

Regards.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)