http://qs321.pair.com?node_id=124558


in reply to My program it doesn't work could you tell me my mistakes?

Here's a simple, "idiomatic" alternative to your code which runs with warnings and strict syntax checking enabled.. monkeygirl has already pointed out the problems with your original version.
#!/usr/bin/perl -w use strict; print "What is your name?\n"; chomp (my $name = <stdin>); print "What is your age?\n"; chomp (my $age = <stdin>); print "You are $name and your age is $age years old.\n";