Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: use strict won't require explicit name for all variables?

by Biker (Priest)
on Feb 28, 2002 at 21:22 UTC ( [id://148380]=note: print w/replies, xml ) Need Help??


in reply to Re: use strict won't require explicit name for all variables?
in thread use strict won't require explicit name for all variables?

OK. Agreed. 100%.

But I can't stop myself from thinking that there might or will be situations where $a and $b may be meaningful.

In a Windows specific application, when accessing diskette drives A: and B: it wouldn't be very far fetched to name two variables $a and $b. If I already know that it's a bad thing I wouldn't do it. But someone who doesn't know about the special meaning of $a and $b could find it quite natural to use those variable names in this situation.

Personally, I have today learnt about $a and $b for life. But if I could be unaware of their special meaning, many more people will. My co-worker, who definitively is a Perl beginner, had no way of understanding the behavior on his own.


Everything will go worng!

  • Comment on Re: Re: use strict won't require explicit name for all variables?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://148380]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-19 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found