use IO::File; my $fh = IO::File->new_tmpfile() || die "Can't make tmp file: $!"; my $FORMAT ="%-4s %-15s %-16s %-16s %-6s %-6s %-8s %s"; open (FILE, ">$fh")|| die "Can't open temp file: $!\n"; select ($fh); # this is an example of how I have coded all of my print statements ###################### # Print Router Table # ###################### print FILE <