On 2012.02.14 15:12, timothy adigun wrote:
On Tue, Feb 14, 2012 at 9:02 PM, Uri Guttman<u...@stemsystems.com> wrote:
On 02/14/2012 02:38 PM, timothy adigun wrote:
Hi Uri,
On Tue, Feb 14, 2012 at 6:07 PM, Uri Guttman<u...@stemsystems.com> wrote:
On 02/14/2012 12:02 PM, timothy adigun wrote:
Hi lina,
you could also use:
no strict 'vars' i.e:
that is a very poor answer. she needed to use my correctly. turning off
strict is only for when you must do it as with some symbol table munging.
it should never disabled for basic variable declarations.
Am sure you got the note after the example I gave in my reply. If not
please check again before your outright judgement!
sorry, regardless of your comment below, you said to try no strict. that
is bad advice and i won't condone seeing it posted to this list without a
correction. it should not be mentioned if the poster is just having a
problem with learning my. you can't say try this poison and then later say
well, it isn't the best thing to do. you just don't mention that unless it
is absolutely necessary. no strict is only needed in very special cases and
i doubt any of them will ever be on topic in this list.
Ok I see then. One should mention what is available as needed.**
I'm no expert, but I do know the rare circumstances where 'no strict' is
needed, and it isn't usually in single variable context.
Excuse me for saying, but Uri is not one to argue with here. Bypassing
'strict' is not something that is "available as needed".
As was pointed out earlier in this thread, the use of 'my' to localize
the variable is all that was required.
Steve
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/