in reply to Error Problem

First off - always use strictures (use strict; use warnings;).

Perl initializes everything for you (to undef mostly) so if you don't have a real value to assign to a variable at declaration time don't assign anything. Combined with use warnings; that often gives early warning about logic errors.

Declare variables as late as possible so the scope over which they are used is clearer.

Uber points for checking the result of your opens, but you should use the three parameter open for extra safety and clarity.

Don't use & for calling subroutines - it's generally not needed and often doesn't do what you think.

Don't use global variables in subs (askname for example) - it's often unclear where variables are altered if you do that sort of thing leading to difficult to debug problems. Your name fetching loop may be better as:

my $playername; until ($playername) { print "What is your player's name?: "; chomp($playername = <STDIN>); }

Apart from a reprise of the globals and calling convention issues, clipcalc only processes the first line of the log file. It would be better written as:

while (<LOGFILE>) { $clipsobt++ if /\bclip\b/i; }

Perl is environmentally friendly - it saves trees