misterperl has asked for the wisdom of the Perl Monks concerning the following question:
I have a file in someDir named like someFile but not the same case, but this glob step returned an empty array.use File::Glob qw( :globally :nocase); my @f = glob( "/someDir/someFile" );
The syntax seemed unusual, like the "use" statement replaced what are usually reserved-word options.
Advice on why this didn't work is appreciated. The example seemed wrong. It seemed like the glob() itself needs the switch, not the "use"?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can I get help with Perl glob for filtering a directory
by choroba (Cardinal) on Nov 03, 2023 at 17:11 UTC | |
|
Re: Can I get help with Perl glob for filtering a directory
by Corion (Patriarch) on Nov 03, 2023 at 17:01 UTC | |
|
Re: Can I get help with Perl glob for filtering a directory
by tybalt89 (Monsignor) on Nov 03, 2023 at 21:05 UTC | |
|
Re: Can I get help with Perl glob for filtering a directory
by hippo (Archbishop) on Nov 03, 2023 at 17:16 UTC | |
by misterperl (Friar) on Nov 06, 2023 at 16:47 UTC | |
by NERDVANA (Priest) on Nov 06, 2023 at 19:23 UTC |