Murphy, Ged (Bolton) wrote:

In order to use the array @files in the below code outside of the
subroutine, so I need to declare @files globally? I'm getting errors at the moment: Global symbol "@files" requires explicit
package name


If so, where is the correct place to declare them in terms of neatness? At
the start of the program? above the subroutine?

I don't see a subroutine, but I do see a loop ;p, I'd say reight before opendir()

 my @files = ();

HTH :)

Lee.M - JupiterHost.Net

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to