RE: 'my' variables

2002-05-14 Thread Hanson, Robert
t: Tuesday, May 14, 2002 5:08 PM To: '[EMAIL PROTECTED]' Cc: HENRY,MARK (HP-Roseville,ex1) Subject: Re: 'my' variables Jonathan, Thanks for the reply.. >use strict; >Always, always, declare your variables with my.[1] What do you mean by "function" variabl

Re: 'my' variables

2002-05-14 Thread HENRY,MARK (HP-Roseville,ex1)
Jonathan, Thanks for the reply.. >use strict; >Always, always, declare your variables with my.[1] What do you mean by "function" variables? Ok, I understand you mean use 'my' to declare containers for incoming arg variables - what about variables used just within the function - ought they be

Re: 'my' variables

2002-05-14 Thread Jonathan E. Paton
> Assuming I used unique variable names throughout my entire program, then is > if correct to say I don't need to declare function variables with 'my'? use strict; Always, always, declare your variables with my.[1] What do you mean by "function" variables? If you are suggesting "pass by global

Re: my variables

2001-11-08 Thread Jeff 'japhy' Pinyan
On Nov 8, Arul, Rex said: >use strict; >my $a= 2; >print "a val is $a\n"; >my $a= 10; >print "a val is $a\n"; > >My question is. How can I put a 'seat-belt' as to tag this kind of >inadvertent behavior as unacceptable? > >When I use, 'use warnings' pragma, it warns me. Is there anything