Murphy, Ged (Bolton) asked: > 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?
That depends on your programming style. Right above the loop would do. Personally, I like to declare my globals in a special section at the top of my program - sometimes even with a short comment as to what they're supposed to hold. I find this helps me when I look at the code much later. YMMV. > The information contained in this message or any of its > attachments is confidential and is intended for the exclusive [...] Blah. Could you please get rid of that when posting to the list? Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>