#!/usr/bin/perl $major = "chemistry"; if ($major eq "chemistry") { print "Welcome, chemistry student!\n"; } else { print "You're not a chemistry student.\n"; print "Why not?\n"; } # note: need the curly braces