fork download
  1. #!/usr/bin/perl-wT
  2.  
  3. use 5.006;
  4. use strict;
  5. use warnings;
  6.  
  7. print ("Enter your age,\n");
  8. my $ age = <STDIN>;
  9. if ($ age <25){print "too yong!,\n";}
  10. elsif ($ age <=40){print "can be obtained!!,\n";}
  11. elsif ($ age >40) {print "too old-yeasts are delayed!!!,\n";}
  12. #end
  13.  
  14.  
Success #stdin #stdout 0s 4728KB
stdin
Standard input is empty
stdout
Enter your age,
too yong!,