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
In reply to Re: Help creating a data structure
by anonymized user 468275
in thread Help creating a data structure
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |