in reply to What kind of code prints GLOB(hexaddress)

A reference to a glob prints that. ie:
[~]$ perl -le '$var = \*FOO; print $var;' GLOB(0x805f888)
One of the more common uses of globrefs are passing file handles into and out of subs, although this is less common now with the IO:: modules.

Replies are listed 'Best First'.
Re: Re: What kind of code prints GLOB(hexaddress)
by Anonymous Monk on Jun 06, 2003 at 20:06 UTC

    Thanks a lot! Your suggestion about filehandles was right on. I had converted one of the globs to a variable to get syntax highlighting on it and the new code had something like:
    while(<FOO>){print $BAR;}
    This doesn't default to filehandle semantics, so you get the GLOB thing.