globs, ref globs, and lexically scoped filehandles

Discussion in 'Perl Misc' started by Alex Hart, Jan 24, 2005.

  1. Alex Hart

    Alex Hart Guest

    2 questions, but somewhat related.

    What is the rule for when it's possible to use a glob, and when it's
    possible to use a ref glob. Can they always be used interchangably? The
    docs seem a little vague on this. Is this a property of the glob, or of
    the function being called?

    Also, concerning lexically scoped filehandles (which is really a ref
    glob, right?), can these be used anywhere a filehandle would be used
    (i.e. will they be auto-vivicated anywhere a file handle is expected?).
    I always see the example with open, but what about sysopen, or accept,
    or bind, or anything else. Can I always use a undefined scalar in these
    functions?

    Thanks.

    - Alex Hart
    Alex Hart, Jan 24, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric Sunshine

    Lexically scoped variables

    Eric Sunshine, Dec 19, 2003, in forum: Ruby
    Replies:
    6
    Views:
    137
    Robert Klemme
    Dec 26, 2003
  2. Gavin Sherlock
    Replies:
    1
    Views:
    97
    Uri Guttman
    Dec 10, 2003
  3. Alex Hart
    Replies:
    1
    Views:
    97
    Anno Siegel
    Jan 24, 2005
  4. Derek Basch
    Replies:
    6
    Views:
    169
    Michele Dondi
    May 29, 2006
  5. Justin C
    Replies:
    1
    Views:
    190
    Justin C
    Oct 7, 2013
Loading...

Share This Page