in reply to Re: Re: Tk interface and the rest of the program -- II
in thread Tk interface and the rest of the program -- II

Your statement assigns an array to a scalar, not what you want. To extract the subroutine parameter, use
my $filename = shift;
This shifts the first element off of @_ and assigns it to $filename.

-Mark