in reply to Re: unquoted string error??!!
in thread unquoted string error??!!
actual filehandles should be kept transparent to the programmer — sometimes a fixed number of filehandles needs to be extended to an arbitrary numberOne can also say:
actual subroutines should be kept transparent to the programmer — sometimes a fixed number of subroutines needs to be extended to an arbitrary numberAs you see, precisely the same statement can be said in equal measure of subroutine names. So how come we don’t see the PC-police railing against bareword subroutine names the same way they do against bareword filehandle names? Both are global, unsigilled names in a particular package. (You can add to bareword format names to that same list, too.)
Please explain this discrepancy: why complain of one and not the other?
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
⋮
If Perl meant for you to never use bareword filehandles, it would deprecate them. Since it has not done so apart from those in all lowercase, they are not deprecated, and any attempt to impose any sort of One True Way™ viewpoint against something which is not deprecated by Perl is by its very nature fundamentally anti-Perlish. And that’s not good.
You may extirpate bareword handles, and for that matter dative syntax also, just as soon as you ban all such statements as:
Until such time as that should occur, kneejerk responses not to use legal and working Perl, delivered as they virtually always are without amplification and elaboration nor even explanation, seem very much out of step with the fundamentallly liberal, or at least multi-cultural, tone of basic Perl culture.print FH; # send $_ to FH print STDERR "See ya!\n";
As someone who has watched that multicultural environment — that is, the founding and abiding principle of There Being More Than One Way To Do It — grow and flourish since Day 1 of Perl 1.0’s initial public release more than 23 years ago, I believe I have enough historical perspective to make the observation that Perl is not about telling people what to do or how they should do it.
For that, there’s always Python. 😱
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: unquoted string error??!!
by Anonymous Monk on May 04, 2011 at 15:27 UTC | |
by tchrist (Pilgrim) on May 04, 2011 at 17:38 UTC | |
by Anonymous Monk on May 04, 2011 at 23:43 UTC | |
|
Re^3: unquoted string error??!!
by anonymized user 468275 (Curate) on May 05, 2011 at 08:39 UTC | |
by BrowserUk (Patriarch) on May 05, 2011 at 10:16 UTC | |
by Anonymous Monk on May 05, 2011 at 10:20 UTC | |
by BrowserUk (Patriarch) on May 05, 2011 at 10:25 UTC |