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

Re^2: To glob or not to glob

by haukex (Archbishop)
on Jan 11, 2018 at 12:09 UTC ( [id://1207115]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ touch 'foo bar.txt'
    $ perl -MFile::Glob=:glob -e 'print for <*foo bar*>'
    
  2. or download this
    use File::Glob 'bsd_glob';
    print for bsd_glob('*foo bar*');
    # -- or --
    use File::Glob $] lt '5.016' ? ':glob' : ':bsd_glob';
    print for <*foo bar*>;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found