Computer Sciences Department logo

CS 368-1 (2010 Summer) — Day 12 Code Sample

These are the code samples that we built in class.

Buffer Flushing Code

#!/usr/bin/perl

use strict;
use warnings;

$| = $ARGV[0];           # try 0, then try 1

print "Start of output... ";
sleep(5);
print "and now we are done!\n";