Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Limiting a glob

by hbm (Hermit)
on Mar 10, 2009 at 16:56 UTC ( #749649=note: print w/replies, xml ) Need Help??

in reply to Limiting a glob

A word from the field, and sorry it took me awhile to track down my notes:

I have a script that worked fine for months, doing something like my @pdfs = glob("$path/*.pdf");. One day the script failed, and with use diagnostics; I got this:

internal error: glob failed at ...
(P) Something went wrong with the external program(s) used for glob and <*.c>. This may mean that your csh (C shell) is broken. If so, you should change all of the csh-related variables in If you have tcsh, make the variables refer to it as if it were csh (e.g. full_csh='/usr/bin/tcsh'); otherwise, make them all empty (except that d_csh should be 'undef') so that Perl will think csh is missing. In either case, after editing, run ./Configure -S and rebuild Perl.

There were not "too many files", which I had seen before with glob. This was new... The environment is out of my hands, so I simply gave up with glob and used File::Find.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-01-27 06:45 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (70 votes). Check out past polls.