> -----Original Message-----
> From: Connie Chan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 10:30 AM
> To: Bob Showalter; [EMAIL PROTECTED]
> Subject: Re: our %hash problem when require
> 
> 
> > The "our" declaration is for the current file only, so you need
> > "our" in Script 1.
> 
> Ooooo.... seems I am hopeness...
> 
> > $a is a "special" variable (used in sort blocks), so it gets a
> > "free pass" from use strict, just like all the other special
> > variables ($_, $/, etc.).
> 
> Was you the guy told me not to use $a, $b ... =)

No.

> I remember this hardly, but some days ago, uncle Drieux told
> me told me that's different for a demo code or gradeful code in
> real. So I believe I can use here =)

You can use it. The question was why "use strict" doesn't complain
even if you don't have our($a). The answer is that all of perl's
special variables work that way.

> 
> >
> > Generally, experts would advise against using $a and $b as variables
> > in your programs.
> >
> 
> I swear that I never use $a, $b in real, even they are no 
> conflict with
> sorting.
> I 'd choose some meanful var name, for better maintence, right ? =)

The syntax police won't come and take you away, I promise! It's
just one of those general "watch out for this" kind of things.

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

Reply via email to