> How would you define c type structures in perl? perldoc Class::Struct
if installed... else: > struct { > int a; > int b; > int c > } STRUCT1; > > int STRUCT1 s; my %struct = ( a => undef, b => undef, c => undef ); > s.a =1; > s.b =2; > s.c =3; $struct{a} = 1; $struct{b} = 2; $struct{c} = 3; And created brand new ones with: my %struct2 = %struct; but remember that's weak copying... not deep. You will end up with two hashes with references to the same data - so watch out! Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]