Changeset 435 for trunk/gsdl/perllib/mgbuildproc.pm
- Timestamp:
- 1999-08-09T11:51:37+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/mgbuildproc.pm
r315 r435 315 315 } 316 316 317 # converts leading number in classification back318 # to letter it represents319 # i.e 67.2.4 becomes C.2.4320 sub char_classification {321 my $self = shift (@_);322 my ($classification) = @_;323 324 return $classification if $classification eq "";325 my ($c) = $classification =~ /^\.?(\d+)/;326 $c = chr($c);327 $classification =~ s/^\d+/$c/;328 329 return $classification;330 }331 332 # converts leading letter of a classification into its ascii equivalent333 # i.e C.2.4 becomes 67.2.4334 sub int_classification {335 my $self = shift (@_);336 my ($classification) = @_;337 my $c = ord($classification);338 $classification =~ s/^./$c/;339 340 return $classification;341 }342 317 1; 343 318
Note:
See TracChangeset
for help on using the changeset viewer.