Livejournal
Log in
Post
Friends
My journal
penguintamerz
blame it on boredom
Nov 24, 2004 01:34
$tday = "Thanksgiving";
$stuff = "food";
if ($tday) {
$stuff =~ s/food/lots of food/i;
print "Today is $tday. Everyone will bring $stuff.\n\n";
}
---
Output: Today is Thanksgiving. Everyone will bring lots of food.
Leave a comment
Read comments 5
Previous post
Next post
Up