in reply to Missing array values after sub routine?

Here is what you have:

sub viewThumbnails{ @filesToDisplay = @_[0];

Here is what it should be:

sub viewThumbnails{ @filesToDisplay = @_;

Had you enabled warnings with -w or use warnings; it would have flagged that line.

Replies are listed 'Best First'.
Re: Re: Missing array values after sub routine?
by heezy (Monk) on Nov 15, 2002 at 23:38 UTC
    Thank you! - I will start to use warnings I promise!