Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 5, 2006, 6:33 pm
rate this thread
I am trying to use Class::Struct, for creating a structure as follows:
struct(messages => '@');
$msg = new Classes;
@xyz = @;
print $elem ."\n";
This gives the following error on compilation:
Too many args to messages at (eval 1) line 17
Classes::messages('Classes=ARRAY(0x8103084)', 'HELLO', 'WORLD',
Also, if I remove the third element of the array, the program compiles,
but I get the following output:
The element "HELLO is not displayed.
Can anyone help me with this or let me know what the problem is?
- » Which module should I use in order to load files over the internet?
- — Next thread in » PERL Modules Announcements
- » perl upgrade, req to understand which modules to install
- — Previous thread in » PERL Modules Announcements