Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^6: Regarding STDOUT and indirect object notation for print

by romandas (Pilgrim)
on Dec 29, 2009 at 23:47 UTC ( #814847=note: print w/replies, xml ) Need Help??


in reply to Re^5: Regarding STDOUT and indirect object notation for print
in thread Regarding STDOUT and indirect object notation for print

Heh.. not the first time I've been all wrong; likely not the last.

So, STDOUT is a glob? Of what? My understanding of globs is it's a bunch of filenames, which you can then iterate over to open, close, test, etc. Is that wrong too?

I'm not sure I follow your logic on the last statement. If, for a glob, Perl will check the IO::Handle namespace, then loading the IO::Handle module will populate that namespace with what Perl needs to find (in this case, the print method), yes? If not, please clarify your statements; I'd appreciate it.
  • Comment on Re^6: Regarding STDOUT and indirect object notation for print

Replies are listed 'Best First'.
Re^7: Regarding STDOUT and indirect object notation for print
by ikegami (Pope) on Dec 30, 2009 at 00:49 UTC

    Different kind of glob. Short for type glob, it's the name of the structure used for symbol table entries. Since each symbol name can be used to refer to a scalar, an array, a hash, a function, etc, a typeglob is a structure with a slot for scalar, a slot for an array, ... and a slot for an IO object. You are passing the glob, and the function grabs the associated IO object (or creates it in the case of open).

    If, for a glob, Perl will check the IO::Handle namespace, then loading the IO::Handle module will populate that namespace with what Perl needs to find (in this case, the print method), yes?

    Couldn't have said it better.

Re^7: Regarding STDOUT and indirect object notation for print
by jwkrahn (Monsignor) on Dec 30, 2009 at 00:22 UTC
    So, STDOUT is a glob? Of what? My understanding of globs is it's a bunch of filenames, which you can then iterate over to open, close, test, etc. Is that wrong too?

    STDOUT is a Perl type glob, not a file glob. A type glob is related to Perl's built-in and package variables.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://814847]
help
Chatterbox?
[marioroy]: might need 2 or 3 backslash for \n. Also \\;
[Lady_Aleena]: shmem, there is MP3::Info/
[Discipulus]: too much complex qx when you know perl are better to avoid
[marioroy]: might need to backslash \'*.mp3\'
[marioroy]: It's a quoting issue inside qx. It's File::Find or qx. LA chooses qx. Almost there.
[marioroy]: Also \"%S\\\n\" oh my, not fun.
[Discipulus]: good night folks
[marioroy]: I will make a mp3info script that takes the -p "%S\n" args and test qx. I'm on the road, so will come back.
[marioroy]: All because File::Find is not fun for LA.
[marioroy]: good night Discipulus.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-04-23 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.