[Israel.pm] Malformed prototype error message
Gaal Yahas
gaal at forum2.org
Thu Sep 4 07:32:02 PDT 2003
On Thu, Sep 04, 2003 at 05:13:19PM +0300, Srikanth Madani wrote:
> Hi all,
> I get the following error message at runtime :
>
>
> > ./DlMntr.pl
> Malformed prototype for main::create_diff: $,$,$ at ./DlMntr.pl line 172.
>
> My prototype is defined as :
> sub create_diff($, $, $);
> The definition block starts with :
> sub create_diff ($, $, $) {
Try if without the commas between the dollar signs.
Oh, and you probably don't need the forward declaration of the sub;
just sub create_diff ($$$) { # your code ... } will do.
--
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
More information about the Perl
mailing list