in reply to Re: Re: Re: Re: Using "my" suppresses "Name used only once" warning?
in thread Using "my" suppresses "Name used only once" warning?
I guess I'm used to being able to tell whether a variable is a number or a string just from the prefix character (which is handy when reading unfamiliar or forgotten code)./me gives Wysardry the odd look.
You mean the Hungarian notation? You can do that in Perl just as well. In fact, there's no requirement in those other languages that the type inferred from your conventional prefix actually agrees with the actual declared type. Nothing prevents you from declaring an integer strFoo or a string pointer iBar. Because it's only a convention.
If you really feel the need for this kind of "self-documentaion", go ahead. Nothing is stopping you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Using "my" suppresses "Name used only once" warning?
by Wysardry (Pilgrim) on Feb 03, 2003 at 19:21 UTC | |
by Jenda (Abbot) on Feb 05, 2003 at 15:30 UTC |