#!/usr/bin/perl # Note: file must be in same directory, or else # must specify an absolute path $file = "crazy_file.txt"; # Another example of TRUE=1, FALSE=blank # Will print blank if file doesn't exist $e = (-e $file); print "Variable \$e = $e\n"; # The following ? : logic still works though print "The file $file "; print $e ? "exists\n" : "does not exist\n";