Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: index using a range

by vsespb (Chaplain)
on Jun 13, 2013 at 23:31 UTC ( #1038864=note: print w/ replies, xml ) Need Help??


in reply to index using a range

Most cryptic:
use List::Util qw/min/; $Str1 = "000001"; print min grep { $_ >= 0 } map { index $Str1, $_ } 1..9;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038864]
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: (6)
As of 2016-07-26 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (232 votes). Check out past polls.