From: "Schlabach, Torsten" <[EMAIL PROTECTED]>
> I have a CGI script that is calling a perl module. One function in
> that module uses a sub which is defined only later in the source, but
> there is a forward declaration available for the function with sub.
> Conceptionally this looks like this:
>
> FooModule.pm:
>
> package FooModule;
>
> sub usedLater;
>
> sub theFunctionCalledFromoutside{
>
> ...
>
> ...
>
> usedLater( $argument );
>
> }
>
> sub usedLater{
>
> [... some code ...]
>
> }
>
> 1;
Conceptualy this should work. You must have a typo or something in
your code. Show us some of the real code.
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>