in reply to Help creating a data structure
For example:
my %pres = (); $pres{ s1 }{ Name } = 'name of first presentation'; $pres{ s1 }{ Grade } = 5; #etc. for my $id ( sort ById keys %pres ) { # whatever } sub ById { GetNumeric( $a ) <=> GetNumeric( $b ); } sub GetNumeric{ my $subject = shift; /(\d+)/; return $1; }
One world, one people
|
|---|