in reply to Please help...not certain why my code does not work.

When you have constant prints like this
print "\nHere is a list to select from:\n"; print "A. Set input filename\n"; ...
It could be better writen with here documents:
print END; This is text that only needs one print END
There were so many places where you made an error, I thought I'd like to point this out: good job on using <STDIN> instead of <>.
chomp ( $selec = <STDIN> );
Where you use this:
$selec =~ s/[a-z]/[A-Z]/;
The substitution could be better written:
$selec =~ tr/a-z/A-Z/;
and that could be better written without a regex:
$selec = uc($selec);
Where you have the switch like statement:
if ( $selec eq 'A' ) { namefile(); Menu (); } ...
You might want to look into something like this:
%func = (A => \&namefile, B=> \&openfile, ...) ... $func{$selec}->(); Menu();
Here, you could do better to add a 'my'
my ( $last, $first, $age, $sex, $height, $weight, $comment ) = split ( +/,/);
Also, you might want to look into having a data structure somewhat like this:
$age[$i++] ={last=>$last,first=>$first,age=>$age,sex=>$sex,height=>$he +ight,weight=>$weight,comment=>$comment}
And you would use it like this:
print "First last=$age[0]{last}\n";
Also, if you change the datastructure, you might want to look into a Shwartzian Transfer.

Sorry for the briefness on some topics, but there were a lot : ) If you still have questions, just ask.

The 15 year old, freshman programmer,
Stephen Rawls

Replies are listed 'Best First'.
Re: Re: Please help...not certain why my code does not work.
by Satanya (Novice) on Jun 05, 2001 at 00:53 UTC

    Thanks for your help Stephen.

    I am a student right now.. I have not been 15 in 5 years but I am greatfull for any help. (wow I feel old... now)

    I am trying to complete my programing degree.

    So any help that I get is fully appreciated.. and I learn alot from you all.

    Thanks agian.

    Satanya