> -----Original Message-----
> From: Andy Dixon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 20, 2007 10:37
> To: Perl beginners
> Subject: Module help
>
> Hello,
>
> I have written a small module with a function that returns some text.
>
> However, when I run it, from a test script, I get:
>
> Undefined subroutine &external::RETURN called at external.pm line 41.
>
> The subroutine is thus:
>
> sub test($) {
You are using I believe pro-typing and I believe you are better
off not using.
>
> my $data = @_;
>
> $data =~ s/cheese/ham/g;
>
> RETURN ($data);
it is return not RETURN
Wags ;)
>
> }
>
>
> I think I may have missed something.. Any help would be wonderful!
>
> Thanks!
>
> Andy
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>
**********************************************************************
This message contains information that is confidential and proprietary to FedEx
Freight or its affiliates. It is intended only for the recipient named and for
the express purpose(s) described therein. Any other use is prohibited.
**********************************************************************
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/