in reply to Diff b/w mods for plugging variables into symbol table:'use var' and 'our'

  • about the diff in reading at compile time and run time. Mean to say, how this is making diff to the symbol table..
  • Ain't above two are saying same thing as that these are plugged at compile time only

For all practical purposes there's no difference between the vars pragma and our, and with modern enough perls I'd recommend using the latter. But just keep in mind that most often you will just want to use lexical variables declared with my. It's nice that you want to learn more about Perl, but be patient and wait until you will really need our. I say so because I've seen some scripts using it every here and there, fundamentally for no real goo reason. I'm not saying this is your case, and I hope it is not. I'm just warning you...

Also check difference between my and local: despite the title, it also contains some discussion about our.

2006-05-17 Retitled by holli, as per Monastery guidelines
Original title: 'Re: Entry to symbol table??'

  • Comment on Re: Diff b/w mods for plugging variables into symbol table:'use var' and 'our'