Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by LanX (Saint)
on Jul 19, 2020 at 12:14 UTC ( [id://11119519]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Is there a problem with using barewords as filehandles ?
in thread Is there a problem with using barewords as filehandles ?

They are accessible everywhere.

To become visible you either need to ...

  • be in the right package
  • use the fully qualified name
  • be in the lexical scope of an our declaration
In Perl, only certain special variables are truly global...

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

Replies are listed 'Best First'.
Re^5: Is there a problem with using barewords as filehandles ?
by ikegami (Patriarch) on Jul 19, 2020 at 23:23 UTC

    Except it's always visible. Yes, you can only use its abbreviated name in some places. So? That doesn't reduce its scope.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-29 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found