Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: lexical vs. local file handles

by jo37 (Deacon)
on Apr 18, 2020 at 19:52 UTC ( [id://11115738]=note: print w/replies, xml ) Need Help??


in reply to Re^3: lexical vs. local file handles
in thread lexical vs. local file handles

My point is: bareword filehandles are something special in Perl syntactically. Avoiding them cuts off a part of the language.

Greetings,
-jo

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Replies are listed 'Best First'.
Re^5: lexical vs. local file handles
by chromatic (Archbishop) on Apr 18, 2020 at 20:52 UTC

    You could say the same thing about goto and mutable global variables and even $[ (which, fortunately, is gone in newer language releases), but in general the same reason to avoid them applies: because using them makes it more difficult to reason about code in the small and the large.


    Improve your skills with Modern Perl: the free book.

Re^5: lexical vs. local file handles
by haukex (Archbishop) on Apr 18, 2020 at 19:54 UTC
    My point is: bareword filehandles are something special in Perl syntactically. Avoiding them cuts off a part of the language.

    Ok, but that wasn't my question...

      TIMTOWTDI. My question is: "Why not?".

      Greetings,
      -jo

      $gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$
        TIMTOWTDI. My question is: "Why not?".

        My question for the specific, technical advantages is something I'm honestly curious about.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-29 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found