Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^10: Is there a problem with using barewords as filehandles ?

by LanX (Saint)
on Jul 08, 2020 at 08:01 UTC ( [id://11119029]=note: print w/replies, xml ) Need Help??


in reply to Re^9: 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.

My point was that the scope of lexical variables can be easily limited.

You can't our FHs to limit the scope so you'd need different packages.

> only by educating the programmers about the language in which they write.

Well we wouldn't need any other languages if programmers were educated enough to use assembler.

FHs need a lot of extra technique, educating a new programmer about all the tricks needed takes a while, without extra benefit.

Discouraging their use doesn't mean changing the language.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^11: Is there a problem with using barewords as filehandles ?
by bliako (Monsignor) on Jul 08, 2020 at 08:15 UTC
    Well we wouldn't need any other languages if programmers were educated enough to use assembler.

    It's a matter of productivity as well.

      > It's a matter of productivity as well

      That's what I tried to imply. :)

      BTW: You can be extremely productive in assembler with the right set of macros, but those macro sets finally evolve to a language like C.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        yes sorry, I missed the part about technique.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119029]
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: (1)
As of 2024-04-25 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found