File: testfile.pl

package info (click to toggle)
perltidy 20031021-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,364 kB
  • ctags: 591
  • sloc: perl: 16,452; makefile: 46
file content (10 lines) | stat: -rw-r--r-- 260 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
print "Help Desk -- What Editor do you use? ";
chomp($editor = <STDIN>);
if ($editor =~ /emacs/i) {
  print "Why aren't you using vi?\n";
} elsif ($editor =~ /vi/i) {
  print "Why aren't you using emacs?\n";
} else {
  print "I think that's the problem\n";
}