So the following are equivalent:

use vars qw(foo)

our $foo = ""

-----Original Message-----
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:17 AM
To: 'Camilo Gonzalez'; [EMAIL PROTECTED]
Subject: RE: Using strict and configuration files


> -----Original Message-----
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 10:16 AM
> To: 'Bob Showalter'; 'Octavian Rasnita'; [EMAIL PROTECTED]
> Subject: RE: Using strict and configuration files
> 
> 
> Bob,
> 
> Exactly what does "our" do? I understand "my" and even 
> "local" but have yet
> to grasp the "our" concept.

It just declares that a global variable will be used without a
qualifying package name. Basically, it makes "use strict" happy.

perldoc -f our

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to