- or download this
print defined($count) ? ("=") x (10-$count)
: "Undefined count.\n";
- or download this
print defined($count) ? substr("==========", $count)
: "Undefined count.\n";
- or download this
print defined($count) ? ("=") x (10-$count)
: "Undefined count.",
...
print defined($count) ? substr("==========", $count)
: "Undefined count.",
"\n";
- or download this
print defined($count) ? ("=") x (10-$count) : "Undefined count.", "\n"
+;
print defined($count) ? substr("==========", $count) : "Undefined coun
+t.", "\n";
- or download this
if (! defined $count) { print "Undefined count.\n" }
else { print substr("==========", $count) }
- or download this
print "You bought $qty item", $qty>1 ? "s" : "", " today!\n";
- or download this
my $item = $qty > 1 ? "items"
: "item";
...
$when = "yesterday" if $purchase_date == $yesterday;
print "You bought $num $item $when!\n";