I have a computationally expensive task in perl, and would like to inform the user that computation is ongoing by printing out a period after each portion of the computation is
You need to set autoflush for STDOUT. Example:
use IO::Handle; STDOUT->autoflush(1); foreach (1..20) { print '.'; sleep(1); }