File: testfile.pl

package info (click to toggle)
perltidy 20071205-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,580 kB
  • ctags: 625
  • sloc: perl: 18,631; makefile: 47
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";
}