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
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
> 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
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