Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

glob does not find non mounted directories

by ISAI student (Scribe)
on Nov 09, 2011 at 17:00 UTC ( #937123=perlquestion: print w/ replies, xml ) Need Help??
ISAI student has asked for the wisdom of the Perl Monks concerning the following question:

See the LINUX log below: Directory evgeny (which belongs to user evgeny) is not found by glob. After doing cd evgeny and cd ../, glob find it.

evgeny@analog4 620 > perl -e 'print join("\n",( glob "*")), "\n";' arielg cad canalog2 izika laycont1 laycont2 liord maora shimons evgeny@analog4 621 > cd evgeny evgeny@analog4 622 > cd ../ evgeny@analog4 623 > perl -e 'print join("\n",( glob "*")), "\n";' arielg cad canalog2 evgeny izika laycont1 laycont2 liord maora shimons
Any ideas?

Comment on glob does not find non mounted directories
Download Code
Re: glob does not find non mounted directories
by SuicideJunkie (Priest) on Nov 09, 2011 at 17:12 UTC

    I'm not sure I see the problem.

    You mention that the directory isn't mounted the first time you run the script. How could glob possibly detect things which do not exist in the directory yet?

    Surely it should not try and rifle through your system files to figure out if something will auto-mount, or poke every possible directory name to see if it appears.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://937123]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2014-08-31 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls