Malformed prototype error. 
Author Message
 Malformed prototype error.

Please help:
When i run >>perl main.pl
i got this error message:"Malformed prototype error at lib_two.pl, line
3"
I have no idea what's the error is about.
Here are some codes.
I have 3 file: main.pl, lib_one.pl, and lib_two.pl

this is main.pl
   use Tk;
   require "lib_one.pl";
   require "lib_two.pl";
   $main = new MainWindow;

this is lib_one.pl
   sub print_msg
   {
      $text = $_[0];
      $main->Dialog(-text=>$text);
      $status = Dialog>show;
      return;
   }

this is lib_two.pl
   sub test
   {
      print_msg("hello");
   }

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Fri, 05 Jul 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Malformed header error 2=ulcer

2. help with error msg: malformed cmd links

3. Perl error message: "Malformed cmd links"

4. HTTP::Request, malformed header error

5. HELP!!!! : HTTPd: malformed header Error

6. Help with "Malformed header" error

7. Perl 553 Malformed Header error

8. HELP: Malformed header error

9. Malformed Header -- perl error

10. Header Malformed Error

11. error: malformed header script

12. PERLFUNC: prototype - get the prototype (if any) of a subroutine

 

 
Powered by phpBB® Forum Software