On Jul 30, Tómas Guðmundsson said: >my $phone_book = qw{ > Fred 0123 > John 4567 > Bill 8901 >};
If you had warnings on, you'd see that this wasn't doing very much. >my $selection = 1; >do { > print "\n Please select one choice"; > print "\n 1. Enter name."; > print "\n 2. Quit.\n"; > >chomp(my $selection = <STDIN>); Here's the problem you're having: remove the 'my' here. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]