Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Glob strange behavior

by cdarke (Prior)
on Aug 21, 2006 at 12:46 UTC ( #568525=note: print w/replies, xml ) Need Help??


in reply to Glob strange behavior

Which version of perl? Early versions did not necessarily return filenames in alphabetical order on all platforms. You might be better off using:
@files = glob("$path*A[0-9]*.pkl");
or iterate through that from a foreach loop, rather than using glob in scalar context.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2020-10-20 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?