in reply to Re^8: Is there a problem with using barewords as filehandles ?
in thread Is there a problem with using barewords as filehandles ?
If you put a block around a file-scope lexical, it is not a file-scope lexical anymore. Writing the main code after subs are defined is another "just be careful" convention — it works (until the convention is broken), but if you do not accept conventions as legitimate solutions to problems with bareword filehandles, then why do you accept conventions as solutions to problems with lexicals?
The last issue of programmer ignorance is not a problem that can be solved by changing the language, only by educating the programmers about the language in which they write.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Is there a problem with using barewords as filehandles ?
by LanX (Saint) on Jul 08, 2020 at 08:01 UTC | |
by bliako (Abbot) on Jul 08, 2020 at 08:15 UTC | |
by LanX (Saint) on Jul 08, 2020 at 14:30 UTC | |
by bliako (Abbot) on Jul 09, 2020 at 06:46 UTC |