- or download this
print "\nHere is a list to select from:\n";
print "A. Set input filename\n";
...
- or download this
print END;
This is
text that
only needs one print
END
- or download this
chomp ( $selec = <STDIN> );
- or download this
$selec =~ s/[a-z]/[A-Z]/;
- or download this
$selec =~ tr/a-z/A-Z/;
- or download this
$selec = uc($selec);
- or download this
if ( $selec eq 'A' ) {
namefile();
Menu ();
}
...
- or download this
%func = (A => \&namefile, B=> \&openfile, ...)
...
$func{$selec}->();
Menu();
- or download this
my ( $last, $first, $age, $sex, $height, $weight, $comment ) = split (
+/,/);
- or download this
$age[$i++] ={last=>$last,first=>$first,age=>$age,sex=>$sex,height=>$he
+ight,weight=>$weight,comment=>$comment}
- or download this
print "First last=$age[0]{last}\n";