Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: To glob or not to glob

by Tux (Canon)
on Jan 11, 2018 at 07:52 UTC ( [id://1207102]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MFile::Glob::bsd_glob -wE'say for bsd_glob ("*.foo")'
    Can't locate File/Glob/bsd_glob.pm in @INC (@INC contains: /pro/lib/pe
    +rl5/site_perl/5.14.2/IA64.ARCHREV_0-LP64-ld /pro/lib/perl5/site_perl/
    +5.14.2 /pro/lib/perl5/5.14.2/IA64.ARCHREV_0-LP64-ld /pro/lib/perl5/5.
    +14.2 .).
    BEGIN failed--compilation aborted.
    
  2. or download this
    $ perl -MFile::Glob=:bsd_glob -wE'say for bsd_glob ("*.foo")'
    "bsd_glob" is not defined in %File::Glob::EXPORT_TAGS at /pro/lib/perl
    +5/5.14.2/IA64.ARCHREV_0-LP64-ld/File/Glob.pm line 45.
    ...
            eval {...} called at -e line 0
    Can't continue after import errors at -e line 0.
    BEGIN failed--compilation aborted.
    
  3. or download this
    $ cpan File::Glob
    :
    The most recent version "1.28" of the module "File::Glob"
    is part of the perl-5.26.1 distribution. ...
    
  4. or download this
    perl561delta.pod:
      File::Glob::glob() has been renamed to File::Glob::bsd_glob()
    ...
    
    perl5260delta.pod:
      L<C<File::Glob::glob()> will disappear in perl 5.30. Use C<File::Glo
    +b::bsd_glob()> instead.
    
  5. or download this
    use File::Glob;
    
    my @files = File::Glob::bsd_glob ("*.txt");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found