Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: ranges to globs

by Anonymous Monk
on May 14, 2011 at 19:04 UTC ( #904872=note: print w/replies, xml ) Need Help??


in reply to ranges to globs

FWIW, don't you want "[0-9]" instead of "?"? :)

Replies are listed 'Best First'.
Re^2: ranges to globs
by jpl (Monk) on May 14, 2011 at 19:59 UTC
    In the context I'm dealing with, there will be no non-digits that could match, and ? chews up less space than [0-9]. But given a solution that assumes ?, it's easy enough to convert it to one using [0-9], where non-digits might appear. I doubt that the elegance (or lack thereof) of the code will be influenced much by the choice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://904872]
help
Chatterbox?
[Discipulus]: just in Eataly: brain surgery while playing clarinet..
[erix]: installing perfect pitch?
[karlgoethebier]: ...good Hot tuna. Note the stacks & racks in the background
[karlgoethebier]: ..the last hippies. They still perform. At least the survivors...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-11-17 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (272 votes). Check out past polls.

    Notices?