Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: To glob or not to glob

by haukex (Bishop)
on Jan 11, 2018 at 12:09 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2022-06-30 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (97 votes). Check out past polls.

    Notices?