[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] do... while? SPOILER



Quoting Tushar Samant (tushar@i-works.com):
> I say--not only will *programmers* of Perl quickly get the same effect as
> the 20 solemn "classes" above, but they will actually enjoy it. Question:
> how would you do it?

use Class::Struct;
struct("Object1" => ["a1" => '$', "a2" => '$']);


I wouldn't enjoy it though.

-- 
Adam Rice -- wysiwyg@glympton.airtime.co.uk -- Blackburn, Lancashire, England

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe