Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

structs in perl

Status
Not open for further replies.

oinkers

Programmer
Jun 14, 2000
23
US
i am having trouble with structures in perl. My code gives me errors. Can any1 give me an idea of how to fix the error.<br><br>use Class::Struct;<br><br>struct Puzzel =&gt;<br>{<br> board =&gt; '@',<br>};<br><br>my $hi = Puzzel-&gt;new();<br><br>$hi-&gt;board ( ['1', '2' ],<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;['4', '5' ],<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;['7', '8' ]);<br> <br><br>The error says that there are too many args.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top