in reply to Pseudo-sigils and Exporting file handles (was: ...beause I can)

Don't you just want to use "*" since file handles are always passed around as part of a symbol-table glob?

        - tye

Replies are listed 'Best First'.
Re: (tye)Re: ...beause I can
by John M. Dlugosz (Monsignor) on Nov 01, 2002 at 20:42 UTC
    No, because the * sigil really will import the entire glob. Hmm, maybe a configuration flag could mean that * imports the IO only, not the whole glob, since that's what is normally used.

      *LOG would have been my choice, too; but then I only ever use that when I'm after a file handle and rarely worry myself with the rest of the glob.

      Perhaps <LOG> instead? It'd require a little bit extra to remove the trailing '>', but should be pretty obvious about what it does.

          --k.


        I like that. Indeed, it's very clear what it's for when you use it in the import list. My code will switch off the leading '<', but the trailing would foul things... that is, it wouldn't be "free" in the existing code designed to handle the regular sigils.