File: testfile.pl

package info (click to toggle)
perltidy 20101217-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,624 kB
  • sloc: perl: 18,913; 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";
}